一本小书 发表于 2021-3-25 06:01 @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 完成 |
@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 完成 |
markyou1888 发表于 2019-11-18 08:55 真是救命啊,在VPS上用精简系统,被优化的把防火墙禁了,怎么都搞不定。。。 |
因是在组策略禁用,在注册表删除改项,就是启用,不影响功能。 |
求教个小问题,WindowsFirewall的不就是注册表里的Windows防火墙项吗,你按照他说的,删除掉这个键值后你的系统防火墙真的能用了吗? |
在注册表中将服务打开即可 |
大神出马,一个顶俩! |
yaya141319 发表于 2019-11-18 08:44 谢谢大神,好用了 |
本帖最后由 yaya141319 于 2019-11-18 08:45 编辑 刪掉這個, 然後重啟看看: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall |
窄口牛 发表于 2019-11-18 08:28 这个试过了,还是不行的 |
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.