Add firewall exceptions

Forum for anything else which doesn't fit in the above forums. Site feedback, random talk, whatever, are welcome.
Post Reply
User avatar
vmanda
Posts: 1634
Joined: Wed Apr 18, 2007 12:25 pm
Location: TM.Romania

Add firewall exceptions

Post by vmanda » Tue Jul 17, 2012 9:12 am

set_firewall.cmd wrote: netsh.exe add allowedprogram PROGRAM="%programfiles%\winamp\Winamp.exe" NAME=Winamp.exe MODE=ENABLE SCOPE=ALL PROFILE=ALL
This is working in windows 7?

Netsh.exe do not knows "allowedprogram" switch into windows XP.
Still not installed windows 7 to test myself.

User avatar
vmanda
Posts: 1634
Joined: Wed Apr 18, 2007 12:25 pm
Location: TM.Romania

Post by vmanda » Fri Jul 20, 2012 6:11 pm

Seems that this is the corect way into Win 7
add firewall exception wrote:netsh advfirewall firewall add rule name="Winamp.exe" dir=in action=allow program="%programfiles%\winamp\Winamp.exe" enable=yes profile=any
remove firewall exception wrote:netsh advfirewall firewall delete rule name="Winamp.exe"

User avatar
crashfly
Posts: 789
Joined: Thu Mar 13, 2008 11:39 pm
Location: Arkansas, USA

Post by crashfly » Mon Jul 30, 2012 1:12 pm

Now that is useful. I did not know you could add exceptions from the command line for the firewall. Thank you for the information.
A mind is like a parachute, it only functions when it is open.
--Anonymous

How to Ask Questions the Smart Way

Post Reply