Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Search All WMI Namespaces with PowerShell

$
0
0

Summary: Learn to look for WMI classes in all WMI namespaces by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to search all WMI namespaces so that
          I can find all WMI classes that are related to batteries?

Hey, Scripting Guy! Answer Use the Get-WmiObject cmdlet, start at the Root namespace, and make sure to use the –recurse switch:

Get-WMIObject -Namespace root -ClassName *battery* -list -recurse -EA 0


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>