|
一本小书 发表于 2021-3-25 06:01
@echo off ECHO 恢复开启Windows Defender reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Win ...
@echo off
ECHO 恢复开启Windows Defender
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 0 /t REG_DWORD /f
echo 完成
ECHO 恢复开启Windows Defender防火墙
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /d 1 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile" /v "EnableFirewall" /d 1 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v "EnableFirewall" /d 1 /t REG_DWORD /f
sc stop MpsSvc MpsSvc & sc config MpsSvc start=auto
::设置防火墙服务为自动、手动、禁用等:样式:sc config MpsSvc start=auto、demand、disabled
echo 完成
|
|