JSI Tip 8818. The 'netsh firewall set portopening protocol=[TCP|UDP] port= name= interface=” ”' command in Windows XP SP2 does NOT change the port name?

Jerold Schulman

December 20, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you use the following command in Windows XP SP2 to change the TCP or UDP port name in an interface, the command returns Ok.:

netsh firewall set portopening protocol = [TCP|UDP] port = name = interface = ””

When you issue netsh firewall show portopening, you are suprised to see that the port name was NOT changed>

NOTE: If you have a single interface, netsh firewall set portopening protocol = [TCP|UDP] port = name = works.

To workaround this behavior:

1. Delete the port using:

netsh firewall delete portopening protocol = [TCP|UDP] port = interface = ””

2. Add the port back, using:

netsh firewall add portopening protocol = [TCP|UDP] port = name = interface = ””



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like