Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $filterNS = "root\cimv2"
  2. $wmiNS = "root\subscription"
  3. $path = "%s"
  4.  
  5. gwmi -Class __FilterToConsumerBinding -Namespace $wmiNS | ForEach-Object {
  6. $consumerName = $_.Consumer -Split'=',2
  7. $filterName = $_.Filter -Split'=',2
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement