- 右鍵點擊開始鍵,點擊 Windows Powershell(管理員)(A)。
-
允許對設備進行操作。
-
根據需要在命令行窗口進行輸入指令即可:
禁用:
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender” /v “DisableAntiSpyware” /d 1 /t REG_DWORD /f
恢復:
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender” /v “DisableAntiSpyware” /d 0 /t REG_DWORD /f