Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Controlled Folder Access Blocking Program Changes

· 6 min read · Home Tech

In this article
  1. What Controlled Folder Access Actually Protects
  2. Why a Program Might Be Blocked from Memory Changes
  3. How to Check if Controlled Folder Access Is Blocking a Program
  4. How to Allow a Program Through Controlled Folder Access
  5. Common Misconceptions and Pitfalls
  6. How to Troubleshoot Memory Errors Separately
  7. Frequently Asked Questions

No, Controlled Folder Access does not block a program from making changes to memory; it only restricts which apps can modify files in protected folders like Documents and Pictures. If a program is being blocked from writing to memory, the cause is something else, such as a permissions issue, a conflicting security tool, or the program itself. This article explains what Controlled Folder Access actually does, how to fix false blocks, and how to troubleshoot memory-related errors separately.

What Controlled Folder Access Actually Protects

Controlled Folder Access is a Windows security feature that is part of Windows Defender (now called Microsoft Defender). It was introduced in Windows 10 version 1709 and is also available in Windows 11. Its purpose is to prevent unauthorized or unknown applications from modifying, deleting, or encrypting files in specific folders. When enabled, it monitors the folders you choose (by default, it protects system folders and user profile folders like Documents, Pictures, Videos, Music, and Desktop) and only allows apps that are on an approved list to write to them.

The feature works by intercepting file system operations—specifically write, modify, and delete actions—and checking them against a list of trusted apps. If an app is not on the list, the action is blocked and a notification appears. This is a file-level protection, not a memory-level protection. Memory management, including read/write operations to RAM, is handled by the operating system and the app itself, and is not affected by Controlled Folder Access.

Why a Program Might Be Blocked from Memory Changes

If you see an error like "Access denied" or "The program cannot write to memory" while Controlled Folder Access is on, the block is likely not related to the feature. Memory errors can stem from several other causes:

  • Insufficient permissions: The program may not have the necessary user account control (UAC) rights to allocate or write to certain memory regions.
  • Antivirus or security software conflicts: Other security tools, especially those with behavior monitoring, can interfere with memory operations.
  • Corrupted system files: Issues with the Windows kernel or system libraries can cause memory allocation failures.
  • Outdated drivers: Especially graphics or audio drivers that interact with memory-mapped files.
  • Program bugs: The software itself may have a memory leak or a coding error.

Controlled Folder Access only checks file paths, not memory addresses. So if the program is trying to write to RAM, the feature will not be the cause.

How to Check if Controlled Folder Access Is Blocking a Program

To determine whether Controlled Folder Access is the culprit, look for the notification that Windows shows when a block occurs. You can also check the event log:

  1. Open the Windows Security app (search for it in the Start menu).
  2. Go to Virus & threat protection.
  3. Click Ransomware protection.
  4. Under Controlled folder access, click Block history.

This will show a list of recent blocks, including the app name and the folder it tried to access. If the program appears there, then it was indeed blocked from writing to a protected folder. If it does not appear, the memory error is unrelated.

How to Allow a Program Through Controlled Folder Access

If you confirm that a legitimate program is being blocked, you can add it to the allowed list. Here is how:

  1. Open Windows Security.
  2. Go to Virus & threat protection > Ransomware protection.
  3. Click Manage Controlled folder access.
  4. Under Allow an app through Controlled folder access, click Add an allowed app.
  5. Choose Recently blocked apps to select from the list, or browse to the executable file.

Note that adding an app allows it to write to all protected folders. If you want to be more restrictive, you can also add a specific folder to the protected list, but that does not change the allowed app list.

If the program is a portable app or a service (like a background process), you may need to add the exact executable path. For services, you may need to use the command line tool Set-MpPreference in PowerShell to add the service executable.

Common Misconceptions and Pitfalls

One common misconception is that disabling Controlled Folder Access will fix memory errors. In most cases, it will not, because the feature does not touch memory. However, if the program is actually trying to write to a file in a protected folder (for example, a game saving a config file in Documents), then disabling the feature or adding the app to the allowed list will resolve that specific error.

Another pitfall is that Controlled Folder Access can block legitimate apps that update themselves or write to their own folders in protected locations. For example, a video editor that saves projects to Documents may be blocked if it is not on the allowed list. In such cases, the fix is to allow the app, not to disable the feature entirely, because disabling it reduces your protection against ransomware.

Also, note that adding an app to the allowed list does not bypass the feature for other apps. Each app must be individually approved.

How to Troubleshoot Memory Errors Separately

If you have confirmed that Controlled Folder Access is not the cause, here are steps to troubleshoot memory-related errors:

  • Run the program as administrator: Right-click the executable and select "Run as administrator" to see if the error persists.
  • Check for Windows updates: Install all pending updates, as they may include fixes for memory management issues.
  • Update drivers: Use Device Manager to check for driver updates, especially for your graphics card and chipset.
  • Run System File Checker: Open Command Prompt as administrator and run sfc /scannow to repair corrupted system files.
  • Test your RAM: Use Windows Memory Diagnostic (search for it in Start) to check for hardware issues.
  • Disable other security software temporarily: If the error goes away, the other software is interfering.

If the error occurs only with a specific program, check the program's support forums or update it to the latest version.

Frequently Asked Questions

Does Controlled Folder Access block memory writes?

No. Controlled Folder Access only monitors file system operations on protected folders. It does not intercept or block memory operations. Memory writes are managed by the operating system and the application's own code.

Why does my program get blocked even though I added it to the allowed list?

Make sure you added the correct executable file. Some programs have multiple executables (e.g., a launcher and a main app). Also, if the program is a service, you may need to add the service executable via PowerShell. Additionally, if the program is a 32-bit version, the path may be in C:\Program Files (x86).

Should I turn off Controlled Folder Access to fix errors?

Only if you have confirmed that the error is due to a file write to a protected folder. Disabling the feature reduces your protection against ransomware. Instead, add the specific app to the allowed list.

Can I protect a custom folder with Controlled Folder Access?

Yes. In the Controlled Folder Access settings, you can add additional folders to the protected list. This is useful for folders outside the default ones, like a project folder on a secondary drive.

What is the difference between Controlled Folder Access and ransomware protection?

Controlled Folder Access is a specific feature under the broader ransomware protection umbrella. It prevents unauthorized apps from modifying files in protected folders. Other ransomware protections include behavior monitoring and cloud-delivered protection.

Does Controlled Folder Access work on Windows 11?

Yes, it is available and works the same way as on Windows 10. The settings are in the Windows Security app, under Virus & threat protection > Ransomware protection.