Skip to content

Instantly share code, notes, and snippets.

@csdy
Created February 1, 2024 16:53
Show Gist options
  • Save csdy/6fc64bc21a2be1bc5356659280609a3e to your computer and use it in GitHub Desktop.
Save csdy/6fc64bc21a2be1bc5356659280609a3e to your computer and use it in GitHub Desktop.
Toggle Windows Firewall via PowerShell
# Disable Firewall
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled False
# Enable Firewall
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment