I'm trying to use COM objects from FirewallAPI.dll to set Windows Firewall rules programmatically from a C# application. The application is supposed to run under a user account that is not from the Administrators group.
I'm struggling with setting this user account permissions to modify the firewall.
I gave this user the full access to HKLM\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy, it doesn't help.
When I try to use INetFwRule::put_RemoteAddresses, I get access denied exception. How to get some information what rights are missing?