• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 891
  • Last Modified:

Detect Windows Firewall ON or OFF in code

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
rrooks
Asked:
rrooks
  • 2
1 Solution
 
justin-clarkeCommented:
Try using this.

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

http://www.shafqatahmed.com/2008/01/controlling-win.html
0
 
rrooksAuthor Commented:
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
 
justin-clarkeCommented:
Excellent glad to help.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now