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.
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 .
Step 3: Select Virus & Threat Protection on the left side of Window Security.
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.
Step 5: Then, at the bottom of the Virus & Threat Protection Settings page, click the Manage Controlled Folder Access option as shown below .
Step 6: Click the Controlled Folder Accesstoggle button to turn it on.
Step 7: Accept the UAC prompt and enable Controlled Folder Access by clicking Yes as shown.
Step 8: After enabling Controlled Folder Access, click on Protected Folders to view the list of folders as shown below.
Step 9: Click Yes" again to accept the UAC prompt to continue.
Step 10: Then, click the Add Protected Folder button to add the required folders.
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.
Step 13: Now you can see that the folder you selected has been added to the protected folder list.
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.
Step 16: Once completed, close the Windows Security window.
that's all.
Step 1: Press Windows R# simultaneously on your keyboard ## key to open the Run dialog box.
Step 2: Typegpedit.msc in the Run dialog box, and then press the Enter key to open the Local Group Policy Editor.
Step 3: Browse the given path below to access theControlled Folder Access option.
计算机配置> 管理模板> Windows 组件> Microsoft Defender 防病毒> Microsoft Defender Exploit Guard> 受控文件夹访问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 theConfigure protected folder option as shown in the image below.
Step 6: In the Configure Protected Folders window, select theEnabled radio button and click Show button, as shown below.
第 7 步:在“显示内容”窗口中,在“值名称”字段中输入要添加到受控文件夹访问的文件夹的路径。
第 8 步:然后,在值字段中输入0 。
步骤 9:对于另一个多个文件夹,按照步骤 8 中的说明依次输入文件夹的路径。
第 10 步:单击“确定”继续。
第 11 步:要从受控文件夹访问中删除文件夹,请单击启用,然后如前所述点击显示按钮。
第 12 步:然后,从“显示内容”窗口中删除/清除文件夹的路径。
步骤 13:完成后关闭本地组策略编辑器窗口。
就这样。
第 1 步:按键盘上的Windows + R键打开“运行”对话框。
第 2 步:然后,在运行框中键入powershell ,然后按CTRL + SHIFT + ENTER键以管理员 身份打开PowerShell应用程序。
第 3 步:要将文件夹添加到受控文件夹访问权限,请复制并粘贴以下命令,然后按Enter键执行。
注意:请将D:\Javascript替换为要添加到受控文件夹访问的文件夹的路径。
PowerShell Add-MpPreference -ControlledFolderAccessProtectedFolders "D:\Javascript"
第 4 步:如果要从受控文件夹访问中删除任何文件夹,请执行以下给定命令。
注意:请将D:\Javascript替换为要从受控文件夹访问中删除的文件夹的路径。
PowerShell 删除-MpPreference -ControlledFolderAccessProtectedFolders "D:\Javascript"
第 5 步:完成后,关闭 PowerShell 应用程序。
就这样。
注意:在继续使用此方法之前,请保留注册表文件的备份。因为如果注册表文件出现问题可能会损坏您的系统,您可以随时将其恢复。
步骤 1:同时按键盘上的Windows + R键以打开运行对话框。
第 2 步:然后,在运行框中键入cmd并同时按CTRL + SHIFT + ENTER键以管理员身份打开命令提示符。
第3步:一一执行以下命令。
set key="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\受控文件夹访问\ProtectedFolders"
注册添加 %key%
第 4 步:关闭命令提示符。
第 5 步:在键盘上同时按Windows + R键以打开运行命令框。
第 6 步:在运行框中键入regedit ,然后按Enter键打开注册表编辑器。
步骤 7:通过单击是继续接受 UAC 提示。
第 8 步:将以下给定路径复制并粘贴到空白且清晰的地址栏中。
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access
第9步:然后右键单击受控文件夹访问并选择新建> DWORD(32位)值。
第 10 步:将新创建的 DWORD 值重命名为ExploitGuard_ControlledFolderAccess_ProtectedFolders并双击打开它。
第 11 步:之后,在 Value data 字段中输入1并单击OK。
第 12 步:再次将以下路径复制并粘贴到空地址栏中,然后按Enter键。
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\受控文件夹访问\ProtectedFolders
第 13 步:然后,确保选中左侧的ProtectedFolders注册表项。
第 14 步:在右侧,右键单击空白区域并选择New > String Value。
第 15 步:将字符串值重命名为要添加到受控文件夹访问的文件夹的路径。
第 16 步:双击打开它并在数值数据字段中输入0 ,然后单击确定。
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.
Step 18: Click "Yes" to confirm deleting the value as shown below.
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!