Andon Posted August 23, 2010 Share Posted August 23, 2010 (edited) Hello, is it possible to check the status of Windows XP firewall (on / off) and able to control it? Thanks for your help. EDIT: OK, I use netsh, but if there is solution using Autoit I'll by very intrested Edited August 23, 2010 by Andon do not beat, I'm new Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 23, 2010 Share Posted August 23, 2010 I wrote this snippet awhile ago. It's sloppy but it works, maybe it'll give you something to start with.. Oh, you could probably use ControlClick to interact with the Firewall.. Run("control Firewall.cpl") WinWaitActive("Windows Firewall") $sVar = ControlGetText("Windows Firewall", "", 205) If StringInStr($sVar, "on") Then ConsoleWrite("The Firewall is ON" & @CR) Else ConsoleWrite("The Firewall is OFF" & @CR) EndIf WinClose("Windows Firewall") - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now