I'm trying to create a batch file to do as the title states. Currently, I have:
netsh advfirewall set allprofiles state off
sleep 30
C:\windows\system32\shutdown -r -t 00
This batch file restarts the computer but it doesn't shut down the firewall.
Should the service be set to manual prior to running the batch file?
netsh advfirewall ...
with Admin permissions?netsh advfirewall set allprofiles state off
and then runnetsh advfirewall show currentprofile
from a command line? Don't restart. The second command should showState OFF
if the first one worked.netsh advfirewall show currentprofile
again from a command line? Is it nowON
orOFF
?