Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Add program through firewall using CMD in windows server 2008  (Read 3074 times)

0 Members and 1 Guest are viewing this topic.

jominj

  • Guest
Add program through firewall using CMD in windows server 2008
« on: February 14, 2014, 09:57:30 pm »
  • To enable a program through the firewall using command prompt use the following command:

netsh firewall add allowedprogram C:\MyApp\MyApp.exe "My Application" ENABLE

  • To open a port use the command:

netsh firewall add portopening TCP 80 "Open Port 80"

  • To delete the program from added in firewall use the command

netsh firewall delete allowedprogram C:\MyApp\MyApp.exe

  • To delete a port from the allowed list use the command:

netsh firewall delete portopening protocol=UDP port=500