Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Detect Windows Firewall ON or OFF in code

Posted on 2008-10-21
3
Medium Priority
?
888 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

877 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