Пример открытия порта 3389 (RDP):

для новых версий Windows:
Netsh Advfirewall Firewall Add Rule name="RDP" dir=in action=allow description="RDP" profile=any remoteip=111.22.33.44 localport=3389 protocol=tcp

для старых версий Windows:
netsh firewall set portopening protocol=ALL port=3389 mode=ENABLE

Comments powered by CComment