Windows PowerShellมอบวิธีอื่นให้คุณเปิดใช้งานและปิดใช้งานการเข้าถึงโฟลเดอร์ที่ควบคุมได้โดยการดำเนินคำสั่ง คุณสามารถเปิดใช้การเข้าถึงโฟลเดอร์ที่ควบคุมโดยใช้ PowerShell ได้ดังนี้:
1. หากต้องการเปิดใช้งานเครื่องมือค้นหาไฟล์ ให้กดWin + S
วิธีเปิดใช้งานการเข้าถึงโฟลเดอร์ที่ควบคุมจากเมนูบริบทของ Windows
นอกจากนี้ คุณสามารถสร้างทางลัดเมนูบริบทเพื่อเปิดใช้งาน/ปิดใช้งานการเข้าถึงโฟลเดอร์ที่ควบคุมได้ จากนั้นคุณจะสามารถเข้าถึง การตั้งค่า เปิดการเข้าถึงโฟลเดอร์ควบคุมจากพื้นที่เดสก์ท็อป Windows ได้ คุณสามารถเพิ่มตัวเลือก CFA ดังกล่าวลงในเมนูคลิกขวาได้โดยตั้งค่าและเรียกใช้สคริปต์รีจิสทรีดังต่อไปนี้:
1. เปิดNotepad
2. จากนั้นเลือกข้อความสคริปต์นี้และกด Ctrl + C :
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: July 19th 2018
; Tutorial: https://www.tenforums.com/tutorials/114389-add-turn-off-controlled-folder-access-context-menu-windows-10-a.html
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess]
"HasLUAShield"=""
"Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
"MUIVerb"="Turn On or Off Control folder access"
"Position"="Bottom"
"SubCommands"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\001flyout]
"MUIVerb"="Turn on Control folder access"
"HasLUAShield"=""
"Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\001flyout\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/c,start PowerShell.exe Set-MpPreference -EnableControlledFolderAccess Enabled' -Verb RunAs\""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\002flyout]
"MUIVerb"="Turn off Control folder access"
"HasLUAShield"=""
"Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\002flyout\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/c,start PowerShell.exe Set-MpPreference -EnableControlledFolderAccess Disabled' -Verb RunAs\""
3. วางสคริปต์ดังกล่าวลงใน Notepad โดยคลิกที่หน้าต่างแอปพลิเคชันและกดCtrl + V