Regedit Key for Controlled Folder Access in Windows

Windows Defender Controlled Folder Access helps protect critical data from ransomware and unauthorized modifications by untrusted applications. This article provides the exact Windows Registry key, value name, and configuration data needed to manage, enable, disable, or audit Controlled Folder Access in Windows 10 and Windows 11.

Registry Key Location

The behavior of Controlled Folder Access is managed under the following path in the Windows Registry Editor (regedit):

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access

If the Windows Defender Exploit Guard or Controlled Folder Access subkeys do not exist, they must be created manually under Windows Defender.

Registry Value and Data Settings

Within the Controlled Folder Access key, create or modify the following DWORD (32-bit) Value:

Set the value data to one of the following integers to determine the feature’s behavior:

Additional Subkeys for Customization

To fully manage Controlled Folder Access via the Registry, two additional subkeys can be created under Controlled Folder Access:

  1. ProtectedFolders
    • Path: ...\Controlled Folder Access\ProtectedFolders
    • Add custom folders to protect by creating a String Value (REG_SZ) where the Value Name is the full folder path (e.g., C:\CustomData) and the Value Data is set to 0.
  2. AllowedApplications
    • Path: ...\Controlled Folder Access\AllowedApplications
    • Whitelist trusted applications by creating a String Value (REG_SZ) where the Value Name is the full executable path (e.g., C:\Program Files\App\app.exe) and the Value Data is set to 0.