Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\SecurityCenter2")
- Set colItems = oWMI.ExecQuery("Select * from FirewallProduct")
- For Each objItem in colItems
- With objItem
- WScript.Echo "{""FIREWALL"":""" & .displayName & """}"
- End With
- Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement