Tuesday, August 9, 2011

Using netsh to whitelist your application in Windows Firewall

It is quite easy to use netsh to whitelist your application in Windows Firewall.

netsh firewall set allowedprogram <absolute_path> <short_name> ENABLE

where:
<absolute_path> is the absolute path to the executable file
<short_name> is some descriptive short name so that users know what this entry in the firewall is for

That is all. Of course, this command must be launched with administrator privilege.

No comments:

Post a Comment