Last active
December 12, 2015 00:38
-
-
Save wagnerpinheiro/4684882 to your computer and use it in GitHub Desktop.
Disable/Enable windows server 2008 firewall
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
@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