Home All Groups Group Topic Archive Search About

How to know if Windows firewall is on or off?

Author
18 Jan 2006 10:56 AM
Lars Netzel
Hi

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

best regards
/Lars

Author
18 Jan 2006 11:21 AM
Armin Zingler
"Lars Netzel" <uih***@adf.se> schrieb> Hi
>
> 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
Author
18 Jan 2006 1:06 PM
Lars Netzel
Yes, thank you! vbscript though... but it worked nice with that reference
too:)

/Lars

Show quoteHide quote
"Armin Zingler" <az.nospam@freenet.de> wrote in message
news:%23kdKeFCHGHA.3036@tk2msftngp13.phx.gbl...
> "Lars Netzel" <uih***@adf.se> schrieb> Hi
>>
>> 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
>