- 右键点击开始键,点击 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