방화벽 예외 프로그램 추가/제거 명령문

컴퓨터 2009. 9. 13. 12:03
XP의 경우
추가 예
netsh firewall add allowedprogram "%programfiles%\internet explorer\iexplore.exe" "Internet Explorer" enable

제거 예
netsh firewall delete allowedprogram "%programfiles%\internet explorer\iexplore.exe"


VISTA/7의 경우
추가 예
netsh advfirewall firewall add rule name="Internet Explorer" dir=in action=allow program="%programfiles%\internet explorer\iexplore.exe" enable=yes

제거 예
netsh advfirewall firewall delete rule name="Internet Explorer" program="%programfiles%\internet explorer\iexplore.exe"


참조 문서
http://support.microsoft.com/kb/947709/en-us
: