How to Add or Remove Protected Folders for Controlled Folder Access in Windows 11

Richard
Written by
Richard
Mar 28, 2026 5 min read

You can add or remove protected folders for Controlled Folder Access in Windows 11 to enhance your security against ransomware and other threats.

Controlled Folder Access is a feature within Microsoft Defender Antivirus that shields your important files by preventing unauthorized applications from making changes. It works by verifying apps against a trusted list before allowing access to designated protected folders.

Windows 11 typically protects common folders like Documents and Pictures by default, and you can add custom locations such as external drives or network shares. You can protect up to 1,000 folders this way.

This tutorial shows you how to manage which folders Controlled Folder Access protects, ensuring only approved applications can modify your valuable data.

Option 1Add or Remove Protected Folders Using Windows Security

  1. Open Windows Security.
  2. Click on Virus & threat protection.
Windows Security Virus and threat protection
Windows Security Virus and threat protection
  1. Do one of the following:
    • Click on the Manage ransomware protection link under Ransomware protection.
  2. Click on the Manage settings link under Virus & threat protection settings. Then click on the Manage Controlled folder access link under Controlled folder access.
Manage settings link in Windows Security virus and threat protection menu

Controlled folder access settings menu for managing protected folders in Windows

  1. Click on the Protected folders link.
windows 11 add protected folder controlled folder access
windows 11 add protected folder controlled folder access

Add Protected Folders to Controlled Folder Access

  1. Click on Add a protected folder.
windows add a protected folder
windows add a protected folder
  1. Go to and select the drive or folder you want to add. Click on Select Folder.

Remove Protected Folders from Controlled Folder Access

  1. Click on the protected folder you want to remove to open it.
  2. Click on Remove.
  3. Click on OK to confirm. (See screenshot below)

When you finish adding or removing protected folders, you can close Windows Security.

Option 2Add or Remove Protected Folders Using Command

  1. REQUIRES ADMIN: Open Windows Terminal (Admin). Select either Windows PowerShell or Command Prompt.
  2. Type the command below into Windows Terminal (Admin). Press Enter.

To add a protected folder:

💻Code
PowerShell Add-MpPreference -ControlledFolderAccessProtectedFolders "<full path>"

OR

To remove a protected folder:

💻Code
PowerShell Remove-MpPreference -ControlledFolderAccessProtectedFolders "<full path>"

Replace <full path> in the commands above with the actual full path of the drive or folder you want to add or remove.

Example:

💻Code
PowerShell Add-MpPreference -ControlledFolderAccessProtectedFolders "Z:\"
💻Code
PowerShell Remove-MpPreference -ControlledFolderAccessProtectedFolders "Z:\"
  1. When finished, you can close Windows Terminal (Admin).

Option 3Configure Protected Folders Using Local Group Policy Editor

Note: The Local Group Policy Editor is only available in Windows 11 Pro, Enterprise, and Education editions. You can use Option Four for the same settings on all editions.

  1. REQUIRES ADMIN: Open the Local Group Policy Editor (gpedit.msc).
  2. In the left pane, go to this location: (See screenshot below)
    • Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Microsoft Defender Exploit Guard > Controlled folder access
windows 11 configure protected folders
windows 11 configure protected folders
  1. In the right pane under Controlled folder access, double-click on the Configure protected folders policy.

Add Protected Folders

  1. Select the Enabled radio button.
  2. Click on the Show button next to Enter the folders that should be guarded under Options.
  3. In the Value name column, type the full path of the drive or folder you want to add. Example: "Z:\"
    • Double-click in the field to enter the full path.
  4. In the Value column to the right, type the number 0.
    • Double-click in the field to enter the number.
  5. When finished adding drives or folders, click on OK.
  6. Click on OK again.
windows 11 protected folder show button
windows 11 protected folder show button
windows 11 protected folder entry gpo
windows 11 protected folder entry gpo

Remove Protected Folders

  1. Select the Enabled radio button.
  2. Click on the Show button next to Enter the folders that should be guarded under Options.
  3. Delete the Value name and Value columns for the drives or folders you want to remove.
  4. When finished removing drives or folders, click on OK.
  5. Click on OK again.

Undo These Changes

To go back to the default setting:

  1. Select the Not Configured radio button.
  2. Click on OK.
  3. You can now close the Local Group Policy Editor.

Option 4Configure Protected Folders Using Registry Editor

Add Protected Folder to Controlled Folder Access

  1. REQUIRES ADMIN: Click on the Download button below to download the registry file that adds the needed registry keys and values.
  2. REQUIRES ADMIN: Open Registry Editor (regedit.exe).
  3. In the left pane, go to this key:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders
  4. In the right pane of the ProtectedFolders key, right-click on an empty space. Click on New. Click on String Value.
  5. Type the full path of the drive or folder you want to add as the name. Example: "Z:\" Press Enter.
  6. Double-click on this string value to change it.
  7. Type the number 0. Click on OK.

Remove Protected Folder from Controlled Folder Access

  1. REQUIRES ADMIN: Open Registry Editor (regedit.exe).
  2. In the left pane, go to this key:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders
  3. In the right pane of the ProtectedFolders key, right-click on the string value (REG_SZ) of the drive or folder you want to remove. Example: "Z:\" Click on Delete.
  4. Click on Yes to confirm.
  5. When finished removing drives or folders, you can close Registry Editor.

Summary

Controlled Folder Access in Microsoft Defender Antivirus is an important way to protect your sensitive data from threats like ransomware. Here are the key points to remember:

  • Why Use It: Controlled Folder Access protects important files by allowing only trusted apps to access protected folders.
  • Default Protection: Several system and user folders are protected by default. This gives you a basic level of security right away.
  • Add Your Own Folders: You can add extra folders for protection. But you cannot remove the default folders.
  • How to Configure It: You can set up the feature through Windows Security, Command Prompt, Local Group Policy Editor, or Registry Editor.
  • Admin Rights Required: You must be signed in as an administrator to add or remove protected folders.
  • Watch for Notifications: Pay attention to notifications that show when an untrusted app tries to access protected folders.

By following these steps, you can make your device more secure. You will prevent unauthorized apps from accessing your important files.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *

Exit mobile version