Solved

Detect Windows Firewall ON or OFF in code

Posted on 2008-10-21
3
857 Views
Last Modified: 2013-12-17
I would like to put some code in my application that checks to see if Windows Firewall (for that matter any firewall) is turned ON. The application needs to have it turned off on the first run so that it can detect local installations of SQL Server.

If it is ON then a message box would be displayed asking the user to turn it off temporarily.

Thanks
0
Comment
Question by:rrooks
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
justin-clarke earned 500 total points
ID: 22766987
Try using this.

It has the correct example in C# for what you need.

http://www.shafqatahmed.com/2008/01/controlling-win.html
0
 
LVL 1

Author Comment

by:rrooks
ID: 22767111
beauty justin...that looks to be exactly what i need. i searched google and here with no luck on fidning anything.

I wont have time to implement it until next thursday or friday but will award you the points anyway now.

thanks again.
0
 
LVL 4

Expert Comment

by:justin-clarke
ID: 22767706
Excellent glad to help.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now