Advertisement
opexxx

a32c109297ed1ca155598cd295c26611

Apr 24th, 2017
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\SecurityCenter2")
  2. Set colItems = oWMI.ExecQuery("Select * from FirewallProduct")
  3. For Each objItem in colItems
  4.   With objItem
  5.     WScript.Echo  "{""FIREWALL"":""" & .displayName & """}"
  6.   End With
  7. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement