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

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

 

Microsoft has released Defender Antivirus, an anti-virus software that assists in safeguarding folders from other apps’ attacks. In a ransomware assault, all folders and files within them are attacked and you will be unable to utilize them since they are locked by another virus-infected process. As a result, adding folders to controlled folder access adds further protection and protects against ransomware attacks. Windows adds the Documents, Pictures, Videos, and so on folders from your Users directory to Controlled folder access by default. To add or remove directories from controlled folder access, you must be logged in as an Administrator on your system. In this piece, we’ve discussed a few techniques for doing so.

 

Section I: Table of Contents
Using Settings, add or remove folders from Controlled Folder Access in Windows 11.
Using the Local Group Policy Editor, add or remove folders from Controlled Folder Access in Windows 11.
How to Use PowerShell to Add or Remove Folders from Controlled Folder Access in Windows 11
Using the Registry Editor, add or remove folders from Controlled Folder Access in Windows 11.
Using Settings, add or remove folders from Controlled Folder Access in Windows 11.

Step 1: On your keyboard, press the Windows + R keys together to launch the Run dialog box.

Step 2: In the run dialog box, type windowsdefender: and press the Enter key on your keyboard to launch Windows Security.

 

Start Windows Defender Mini.

 

Step 3: On the left side of the Window Security, select Virus & Threat Protection.

 

11zon Virus and Threat Protection

 

Step 4: Scroll down on the right side of the window and click on Manage settings under the Virus & Threat Protection Settings option, as shown below.

 

Settings for Virus and Threat Protection 11zon

 

Step 5: Finally, at the bottom of the Virus & Threat Protection Settings screen, select Manage Controlled Folder Access, as shown below.

ADVERTISEMENT

Controlled Folder Access 11zon Management

 

Step 6: Toggle the Controlled folder access toggle button to the On position.

 

Controlled Folder Access 11zon toggle

 

Step 7: Click Yes to accept the UAC popup to enable Controlled folder access.

 

11zon Uac Prompt Windows Security

 

Step 8: After activating Controlled folder access, click Protected folders to display the list of folders, as shown below.

 

11zon Protected Folders

 

Step 9: Once again, click Yes to accept the UAC message and proceed.

 

11zon Uac Prompt Windows Security

 

Step 10: Next, click the Add a protected folder button to add the desired folder.

 

11zon Add Protected Folders

 

Step 11: Navigate to the folder you wish to add and choose it.

Step 12: Next, as indicated in the figure below, click the Select Folder button.

 

Examine Folder 11zon

 

Step 13: You can now see that the folder you choose has been added to the list of Protected Folders.

 

11zon Added Folder Appeared

 

Step 14: To remove the Protected folder from the list, simply select it by clicking on it.

Step 15: You will then see the Remove button under the protected folder. Please click on it to delete the protected folder immediately.

 

11zon Remove The Protected Folder

 

Step 16: When you’re finished, close the Windows Security window.

That’s it.

 

Using the Local Group Policy Editor, add or remove folders from Controlled Folder Access in Windows 11.

Step 1: On your keyboard, press the Windows + R keys together to launch the Run dialog box.

Step 2: In the run dialog box, type gpedit.msc and hit the Enter key to open the Local group policy editor.

 

Gpedit Min should be run.

 

Step 3: Navigate to the Controlled Folder Access option using the path provided below.

Controlled Folder Access> Computer Configuration> Administrative Templates> Windows Components> Microsoft Defender Antivirus> Microsoft Defender Exploit Guard>
Step 4: On the left side panel of the Local group policy editor, select Controlled Folder Access.

Step 5: Double-click the Configure secured folders option on the right side of the window, as seen in the image below.

 

11zon Configure Protected Folders

 

Step 6: In the Configure protected folders window, select Enabled and then click Show, as shown in the image below.

 

Show 11zon Configure Protected Folder Enabled

 

Step 7: In the Show Contents window, in the Value name area, enter the path to the folder you wish to add to controlled folder access.

Step 8: Finally, type 0 into the Value field.

Step 9: To add more folders, enter the path of each folder one by one, as described in Step 8.

Step 10: To proceed, click OK.

 

Insert 11zon into the Folder

 

Step 11: To remove the folders from controlled folder access, select Enabled and then hit the Show button as previously stated.

ADVERTISEMENT
Step 12: Finally, delete or clear the folder’s path from the Show Contents window.

Step 13: When finished, close the Local Group policy editor window.

That’s it.

 

 

How to Use PowerShell to Add or Remove Folders from Controlled Folder Access in Windows 11

Step 1: On your keyboard, press the Windows + R buttons to launch the Run dialog box.

Step 2: Next, type powershell in the run box and click CTRL + SHIFT + ENTER to launch PowerShell as an administrator.

 

Start Powershell Min.

 

Step 3: To add the folder to the Controlled folder access, copy and paste the following command and click the Enter key.

PLEASE NOTE: Replace D:Javascript with the path to the folder you want to add to controlled folder access.

Add-MpPreference -ControlledFolderAccessProtectedFolders “D:Javascript” PowerShell

Folder 11zon should be added.

 

Step 4: To remove a folder from Controlled folder access, run the command listed below.

PLEASE NOTE: Replace D:Javascript with the path to the folder you want to remove from controlled folder access.

Remove-MpPreference -ControlledFolderAccessProtectedFolders “D:Javascript” PowerShell

Delete Folder 11zon

 

Step 5: When finished, exit the PowerShell application.

That’s it.

 

Using the Registry Editor, add or remove folders from Controlled Folder Access in Windows 11.

NOTE: Before using this procedure, please make a backup of the Registry file. Because you can undo it at any point if something goes wrong with the registry file, perhaps causing damage to your machine.

 

Step 1: On your keyboard, press the Windows + R keys together to launch the Run dialog box.

Step 2: Next, type cmd into the run box and click CTRL + SHIFT + ENTER to launch Command Prompt as administrator.

 

3 Optimized Run Command

 

Step 3: Run the instructions listed below one by one.

make key= “HKEY LOCAL MACHINE\SOFTWARE\Policies\

Controlled Folder AccessProtectedFolders MicrosoftWindows DefenderWindows Defender Exploit Guard”

%key% regadd

Cmd 11zon is used to set keys.

 

Step 4: Shut off the Command Prompt.

Step 5: On your keyboard, press the Windows + R buttons together to launch the Run command box.

Step 6: To open Registry Editor, type regedit in the run box and press the Enter key.

Step 7: To proceed, accept the UAC prompt by clicking Yes.

 

1 Execute Regedit Optimized

 

Step 8: Paste the following path into the empty and clear address bar.

HKEY LOCAL MACHINE\SOFTWARE\Policies\

Windows Defender from Microsoft

Controlled Folder Access in Windows Defender Exploit Guard

Step 9: Then, on Controlled Folder Access, right-click and select New > DWORD(32-bit) Value.

 

New Dword Value 11zon Controlled Folder Access

 

Step 10: Double-click on the newly formed DWORD value and rename it ExploitGuard ControlledFolderAccess ProtectedFolders.

Step 11: Then, in the Value data field, enter 1 and click OK.

 

11zon Dword Value 1

 

Step 12: Copy and paste the following path into the empty address bar once more, then press the Enter key.

HKEY LOCAL MACHINE\SOFTWARE\Policies\

Controlled Folder Access in Microsoft Windows DefenderWindows Defender Exploit Guard

ProtectedFolders
Step 13: Then, on the left, make sure the ProtectedFolders registry key is chosen.

Step 14: Right-click on an empty slot on the right side and choose New > String Value.

 

New String Value 11zon for Protected Folders

 

Step 15: Rename the String value to the Folder location you want to add to Controlled Folder Access.

Step 16: Double-click it to open it, then type 0 into the Value data field and press OK.

 

String Value 0 11zon Folder Path

 

Step 17: To remove a folder from Controlled folder access, right-click on the string value folder path and choose Delete from the context menu, as shown below.

 

11zon Delete Folder Path

 

Step 18: As indicated below, click Yes to confirm value deletion.

 

Regedit 11zon Confirm Delete

 

Step 19: When finished, exit the Registry Editor.

That’s it.

I hope you found this essay informative.

Please express your thoughts in the comments section below.

Thank you very much!

Leave a Reply