Home > Common Problem > body text

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

WBOY
Release: 2023-04-18 15:31:03
forward
2515 people have browsed it

Microsoft has launched an antivirus software that helps protect folders from any other application called Defender Antivirus. In a ransomware attack, all the folders and files within it are compromised and you will not be able to use them as it will be locked by another virus process. So when you add a folder to Controlled Folder Access, it provides extra security and prevents these ransomware attacks. By default, Windows adds folders such as Documents, Pictures, Videos, etc. in the user directory to Controlled Folder Access. You need to be logged in as SystemAdministrator to add or remove folders from Controlled Folder Access. In this article we have explained some of the ways you can do this.

How to add or remove folders to Controlled Folder Access in Windows 11 using Settings

Step 1: Press the Windows R key simultaneously on your keyboard to open the Run dialog box.

Step 2: Type windowsdefender: in the Run dialog box and press the Enter key on your keyboard to open Windows Security .

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 3: Select Virus & Threat Protection on the left side of Window Security. How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 4: On the right side of the window, scroll down and click Management Settings under the Virus & Threat Protection Settings option as shown below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 5: Then, at the bottom of the Virus & Threat Protection Settings page, click the Manage Controlled Folder Access option as shown below .

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 6: Click the Controlled Folder Accesstoggle button to turn it on.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 7: Accept the UAC prompt and enable Controlled Folder Access by clicking Yes as shown.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 8: After enabling Controlled Folder Access, click on Protected Folders to view the list of folders as shown below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 9: Click Yes" again to accept the UAC prompt to continue.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 10: Then, click the Add Protected Folder button to add the required folders.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 11: Browse to and select the folder you want to add.

Step 12: Then, click the Select Folder button as shown in the image below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 13: Now you can see that the folder you selected has been added to the protected folder list.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 14: If you want to remove a protected folder from the list, just click on the folder.

Step 15: Then you will see the Delete button under the protected folder. Please click on it and delete the protected folder immediately.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 16: Once completed, close the Windows Security window.

that's all.

How to add or remove folders to Controlled Folder Access in Windows 11 using the Local Group Policy Editor

Step 1: Press Windows R# simultaneously on your keyboard ## key to open the Run dialog box.

Step 2: Type

gpedit.msc in the Run dialog box, and then press the Enter key to open the Local Group Policy Editor.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 3: Browse the given path below to access the

Controlled Folder Access option.

计算机配置> 管理模板> Windows 组件> Microsoft Defender 防病毒> Microsoft Defender Exploit Guard> 受控文件夹访问
Copy after login

Step 4: Select

Controlled Folder Access on the left panel of the Local Group Policy Editor.

Step 5: Then, on the right side of the window, double-click the

Configure protected folder option as shown in the image below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 6: In the Configure Protected Folders window, select the

Enabled radio button and click Show button, as shown below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 7 步:在“显示内容”窗口中,在“值名称”字段中输入要添加到受控文件夹访问的文件夹的路径。

第 8 步:然后,在字段中输入0 。

步骤 9:对于另一个多个文件夹,按照步骤 8 中的说明依次输入文件夹的路径。

第 10 步:单击“确定”继续。

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 11 步:要从受控文件夹访问中删除文件夹,请单击启用,然后如前所述点击显示按钮。

第 12 步:然后,从“显示内容”窗口中删除/清除文件夹的路径。

步骤 13:完成后关闭本地组策略编辑器窗口。

就这样。

如何使用 PowerShell 在 Windows 11 中向受控文件夹访问添加或删除文件夹

第 1 步:按键盘上的Windows + R键打开“运行”对话框。

第 2 步:然后,在运行框中键入powershell ,然后按CTRL + SHIFT + ENTER键以管理员 身份打开PowerShell应用程序。

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 3 步:要将文件夹添加到受控文件夹访问权限,请复制并粘贴以下命令,然后按Enter键执行。

注意:请将D:\Javascript替换为要添加到受控文件夹访问的文件夹的路径。

PowerShell Add-MpPreference -ControlledFolderAccessProtectedFolders "D:\Javascript"
Copy after login

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 4 步:如果要从受控文件夹访问中删除任何文件夹,请执行以下给定命令。

注意:请将D:\Javascript替换为要从受控文件夹访问中删除的文件夹的路径。

PowerShell 删除-MpPreference -ControlledFolderAccessProtectedFolders "D:\Javascript"
Copy after login

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 5 步:完成后,关闭 PowerShell 应用程序。

就这样。

如何使用注册表编辑器在 Windows 11 中向受控文件夹访问添加或删除文件夹

注意:在继续使用此方法之前,请保留注册表文件的备份。因为如果注册表文件出现问题可能会损坏您的系统,您可以随时将其恢复。

步骤 1:同时按键盘上的Windows + R键以打开运行对话框。

第 2 步:然后,在运行框中键入cmd并同时按CTRL + SHIFT + ENTER键以管理员身份打开命令提示符

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第3步:一一执行以下命令。

set key="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\受控文件夹访问\ProtectedFolders"
Copy after login
注册添加 %key%
Copy after login

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 4 步:关闭命令提示符。

第 5 步:在键盘上同时按Windows + R键以打开运行命令框。

第 6 步:在运行框中键入regedit ,然后按Enter键打开注册表编辑器

步骤 7:通过单击是继续接受 UAC 提示。

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 8 步:将以下给定路径复制并粘贴到空白且清晰的地址栏中。

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

第9步:然后右键单击受控文件夹访问并选择新建> DWORD(32位)值。

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 10 步:将新创建的 DWORD 值重命名为ExploitGuard_ControlledFolderAccess_ProtectedFolders并双击打开它。

第 11 步:之后,在 Value data 字段中输入1并单击OK

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 12 步:再次将以下路径复制并粘贴到空地址栏中,然后按Enter键。

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\受控文件夹访问\ProtectedFolders
Copy after login

第 13 步:然后,确保选中左侧的ProtectedFolders注册表项。

第 14 步:在右侧,右键单击空白区域并选择New > String Value

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

第 15 步:将字符串值重命名为要添加到受控文件夹访问的文件夹的路径。

第 16 步:双击打开它并在数值数据字段中输入0 ,然后单击确定。

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 17: If you want to remove the folder from Controlled Folder Access, right-click on the string value folder path and select the Remove option from the context menu as shown below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 18: Click "Yes" to confirm deleting the value as shown below.

How to add or remove folders to Controlled Folder Access in Windows 11 and 10

Step 19: When finished, close Registry Editor.

that's all.

Hope this article is useful.

The above is the detailed content of How to add or remove folders to Controlled Folder Access in Windows 11 and 10. For more information, please follow other related articles on the PHP Chinese website!

source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template