1

We want to use Cisco NAC and need to check if client Desktop has a firewall installed. This may be not the default Windows Firewall.

Is there some Windows registry key that can be checked?

Sam Holder
  • 32,535
  • 13
  • 101
  • 181
Karol
  • 93
  • 4
  • 7

2 Answers2

4

Maybe just check if you can establish connection, if you can't - display a message that user should check firewall if it's installed?

Petr Abdulin
  • 33,883
  • 9
  • 62
  • 96
1

For non-Windows firewalls, you can use WMI API to detect the presence of a firewall if it's registered with Windows.

Namespace = "Root\SecurityCenter2"  (might be "Root\SecurityCenter" on pre-vista)
Query = "SELECT * From FirewallProduct"

And you can use this little gem to detect if it's actually on or off.

For Windows Firewall detection, it's INetFwMgr and friends.

selbie
  • 100,020
  • 15
  • 103
  • 173