New
#1
Netsh firewall issue
Hi,
I'm trying to add a rule for our program when installing the application. However it doesn't work for a private profile but it does work on a domain profile. Even weirder is when I delete the rule after setup and add the same rule again it does work!
The rule I'm adding during setup (InstallShield) is:
netsh advfirewall firewall add rule name=MyApp dir=in program="c:\myapp\appie.exe" action=allow protocol=UDP edge=deferuser profile=any
When retrieving the rule info (netsh advfirewall firewall show rule name=MyApp) I get:
Rule Name: MyApp
----------------------------------------------------------------------
Enabled: Yes
Direction: In
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: UDP
LocalPort: Any
RemotePort: Any
Edge traversal: Defer to user
Action: Allow
Like I said when I delete the rule and add it again on the command line it does work but the output when retrieving the info is exactly the same !
TIA,
Erik