Created
February 1, 2024 16:53
-
-
Save csdy/6fc64bc21a2be1bc5356659280609a3e to your computer and use it in GitHub Desktop.
Toggle Windows Firewall via PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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