How to know if Windows firewall is on or off?

L

Lars Netzel

Hi

How do i (in vb.net) get the information if the windows firewall is turned
on or off?

best regards
/Lars
 
A

Armin Zingler

Lars Netzel said:
How do i (in vb.net) get the information if the windows firewall is turned
on or off?

In the help index, enter "Windows Firewall". The first topic found seems to
be what you are looking for.

VBScript example:

http://msdn.microsoft.com/library/en-us/ics/ics/wf_verifying_wf_enabled.asp


I don't know why this is a sub topic of ICS, but I didn't find another one.

It seems you can also set a reference to "NetFwTypelib" on the COM folder of
the "add reference" dialog.


Armin
 
L

Lars Netzel

Yes, thank you! vbscript though... but it worked nice with that reference
too:)

/Lars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top