Turn the firewall on on the currently active profile with netsh.
1 2 3 4 5 | C:\Users\run> netsh advfirewall set currentprofile state on OK. C:\Users\run> |
Turn the firewall off on the currently active profile with netsh.
1 2 3 4 5 | C:\Users\run> netsh advfirewall set currentprofile state off OK. C:\Users\run> |