- @echo off
- reg add HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile /V EnableFirewall /T REG_DWORD /D 0 /F
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" /V EnableFirewall /T REG_DWORD /D 0 /F
复制代码
- @echo off
- reg add HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile /V EnableFirewall /T REG_DWORD /D 1 /F
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" /V EnableFirewall /T REG_DWORD /D 1 /F
复制代码
|