# Get-FirewallDetails.ps1 # Gets details of Windows Firewall (on Vista and Server 2008 or later) # Runs on the local machine # Thomas Lee – tfl@psp.co.uk # First create COM object for policy profile and get host name $profile = (new-object -com HNetCfg.FwMgr).LocalPolicy.CurrentProfile $Hostname =hostname # Is firewall enabled? if ( $profile .FirewallEnabled) { "Firewall is enabled… Read the full text.