Admin-Ahead Community
Windows => General Windows => Topic started by: jominj 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