Netsh ile firewall da tek satırda port açmak

Windows 7 – 2008 için tek satırda port açmak,

C:\Users\Administrator>netsh firewall add portopening tcp 9001 9001 Enable ALL

IMPORTANT: Command executed successfully.
However, “netsh firewall” is deprecated;
use “netsh advfirewall firewall” instead.
For more information on using “netsh advfirewall firewall” commands
instead of “netsh firewall”, see KB article 947709
at http://go.microsoft.com/fwlink/?linkid=121488 .

Ok.