Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Detect Windows Firewall ON or OFF in code

Posted on 2008-10-21
3
Medium Priority
?
881 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
justin-clarke earned 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 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