Skip to content

Instantly share code, notes, and snippets.

@wagnerpinheiro
Last active December 12, 2015 00:38
Show Gist options
  • Save wagnerpinheiro/4684882 to your computer and use it in GitHub Desktop.
Save wagnerpinheiro/4684882 to your computer and use it in GitHub Desktop.
Disable/Enable windows server 2008 firewall
@echo off
rem Disable/Enable windows server 2008 firewall
if [%1]==[] goto usage
netsh firewall set opmode %1
goto :eof
:usage
@echo firewall-state [enable|disable]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment