[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]

TCP Query User{254239A8-847C-4A63-86E1-8C9F134B82D1}C:\program files (x86)\duruedit\duruedit.exe
v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Private|App=C:\program files (x86)\duruedit\duruedit.exe|Name=DuruEdit|Desc=DuruEdit|Defer=User|

UDP Query User{6E630457-637A-4A79-B420-276DCAA74BFB}C:\program files (x86)\duruedit\duruedit.exe
v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=17|Profile=Private|App=C:\program files (x86)\duruedit\duruedit.exe|Name=DuruEdit|Desc=DuruEdit|Defer=User|


netsh advfirewall firewall add rule name="프로그램상에 적은 포트번호 port" protocol=TCP dir=in localport=프로그램상에 적은 포트번호 action=allow

Windows 방화벽 예외 목록에 프로그램 추가하기 Windows 방화벽 예외 목록에 프로그램 추가하기 
netsh firewall add allowedprogram [<Path>\ProgramName] [ENABLE/DISABLE]

ex)netsh firewall add allowedprogram "c:\Program Files(x86)\DuruEdit.exe" DuruEdit Enable

Windows 방화벽에 예외 포트 추가하기
netsh firewall add portopening [TCP/UDP][Port][Name]

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
   