I know I can use Set-NetFirewallProfile –Enabled False to turn off the firewall but if I restart the server, the firewall becomes enabled. The only thing that works if if I edit the local group policy (computer config -> admin templates -> network -> network connections -> windows firewall -> standard profile -> "Windows Firewall: Protect all network connections" set to Disabled).
Does anyone know how I can do the above steps in a Powershell command?