Lists remote administration settings for the Windows Firewall current profile
Set objFirewall = CreateObject("HNetCfg.FwMgr")Set objPolicy = objFirewall.LocalPolicy.CurrentProfileSet objAdminSettings = objPolicy.RemoteAdminSettingsWscript.Echo "Remote administration settings enabled: " & _objAdminSettings.EnabledWscript.Echo "Remote administration addresses: " & _objAdminSettings.RemoteAddressesWscript.Echo "Remote administration scope: " & objAdminSettings.ScopeWscript.Echo "Remote administration IP version: " & objAdminSettings.IPVersion