Lists all authorized applications for the Windows Firewall standard profile
Set objFirewall = CreateObject("HNetCfg.FwMgr")Set objPolicy = objFirewall.LocalPolicySet objProfile = objPolicy.GetProfileByType(1)Set colApplications = objProfile.AuthorizedApplicationsFor Each objApplication in colApplicationsWscript.Echo "Authorized application: " & objApplication.NameWscript.Echo "Application enabled: " & objApplication.EnabledWscript.Echo "Application IP version: " & objApplication.IPVersionWscript.Echo "Application process image file name: " & _objApplication.ProcessImageFileNameWscript.Echo "Application remote addresses: " & _objApplication.RemoteAddressesWscript.Echo "Application scope: " & objApplication.ScopeWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file