INetFwPolicy2
INetFwPolicy2 is a COM interface that provides programmatic access to the Windows Firewall with Advanced Security policy. It exposes the firewall's configuration and policy state to software, enabling queries and changes to how the firewall handles network traffic.
The interface is exposed by the Windows Firewall service and is available on Windows Vista and later.
Developers typically access INetFwPolicy2 via COM bindings described in the NetFwTypeLib type library or through the
Use of the interface is common in enterprise administration and security software to automate policy deployment,