code_junkie

Missing classes in WMI when non-admin

Nov 10th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. set WMI = GetObject("WinMgtmts:/root/cimv2")
  2. set objs = WMI.InstancesOf("Win32_PhysicalMedia")
  3. wscript.echo objs.count
Add Comment
Please, Sign In to add comment