473,322 Members | 1,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to know if Windows firewall is on or off?

Hi

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

best regards
/Lars
Jan 18 '06 #1
2 2931
"Lars Netzel" <ui****@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...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

Jan 18 '06 #2
Yes, thank you! vbscript though... but it worked nice with that reference
too:)

/Lars

"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"Lars Netzel" <ui****@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...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

Jan 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bart Nessux | last post by:
for i in range(10000): try: n,v,t = EnumValue(open_key,i) # n == name of the registry object. # v == object's value. # t == object's type. print n,v,t except EnvironmentError: print "\nThere...
0
by: Brad Tilley | last post by:
I thought some of you might find this of interest. Especially if you use Python for Windows sys-admin tasks and you do not want to use the built-in "Windows Firewall" that came with service pack 2....
6
by: Ann | last post by:
Hi I have a question regarding the SQL Server(SQL Server 7) port 1433. Some body is trying to hack into our Windows 2000 server through port 1433. Is there a way i can close this port? I tried...
2
by: Jeffrey Tate via DotNetMonster.com | last post by:
The error is: The proxy settings on this computer are not configured correctly for Web discovery. MSDN states that this is caused by: This error appears in the Add Web Reference dialog box if...
11
by: kshetgar | last post by:
I am experiencing a wierd problem... I have a C#.Net application Server which uses Sockets. It listens on port 11000. and it runs as a Windows Service. If I run it as a consple Application,...
3
by: Vinod R.Shenoy | last post by:
Hi All, Came across a post wherin you had helped somebody with a similar problem and was wondering if you could help us out with it. Our problem is , We have a development SQL Server 2000...
4
by: =?Utf-8?B?SmF5RFA=?= | last post by:
HELP! I have a small home network setup. One Desktop for me, one dektop for my two girls, a laptop for work, my wife's laptop, and my son's laptop for college work. All in "WORKGROUP" ...
2
by: =?Utf-8?B?YnJpZ2Fkb29t?= | last post by:
windows firewall not working at all. i need to access windows firewall program but when i click icon in control panel box pops up stating "Due to an unidentified problem,windows cannot display...
3
by: Sin Jeong-hun | last post by:
I'm writing a very simple web server with C#. Since this is NOT for actual use, I won't permit connection from other than the computer it's running on. But, when I run it, Windows Firewall askes me...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.