Windows Firewall – Disable / Enable
# Check Firewall Status
Get-NetFirewallProfile | Format-Table Name, Enabled
# Disable Firewall
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled False
# Check Firewall Status
Get-NetFirewallProfile | Format-Table Name, Enabled
# Enable Firewall
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled True