注册表关闭Windows Defender+防火墙

直接上reg文件,做一个记录。

1
2
3
4
5
6
7
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\]
"DisableAntiSpyware"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]
"EnableFirewall"=dword:00000000

关闭防火墙是下面那条,那条是不用重启就生效的。
上面那个是关闭病毒防护的,但是需要重启。