Connecting Tech Pros Worldwide Forums | Help | Site Map

Perl script to determine if Windows Firewall is on

Newbie
 
Join Date: Oct 2007
Posts: 2
#1: Oct 15 '07
I was wondering if there is a way to detect if the Windows firewall is turned on for the machine in which the script is running? If so, is there a way to detect the firewall's settings?

Thanks!

numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#2: Oct 15 '07

re: Perl script to determine if Windows Firewall is on


Quote:

Originally Posted by kimster

I was wondering if there is a way to detect if the Windows firewall is turned on for the machine in which the script is running? If so, is there a way to detect the firewall's settings?

Thanks!

I see that there is a Windows Firewall Log Parser module, but nothing for detecting settings and such.

Hopefully someone else will know.

Regards,

Jeff
Newbie
 
Join Date: Oct 2007
Posts: 2
#3: Oct 16 '07

re: Perl script to determine if Windows Firewall is on


I think I found my solution. I believe this can be done by looking at the Windows registry key -

SYSTEM\\CurrentControlSet\\Services\\SharedAccess\ \Parameters\\FirewallPolicy\\DomainProfile
Reply