Subscribe to Windows IT Pro

Listing WMI Namespaces

A full namespace list is just a command away
Posted @ 1/17/2012 12:43 PM By Don Jones

 

As you know, every computer in your environment can have slightly different WMI capabilities, depending upon what roles, software, and technologies are installed. Being able to quickly list the available namespaces is pretty useful - especially if you can do it remotely. In PowerShell, it's not too hard:

gwmi -namespace "root" -class "__Namespace" | Select Name
 Be careful: There are TWO underscores in front of Namespace!

Once you have a namespace's name, listing its classes is even easier:

gwmi -namespace root\cimv2 -list

Just replace the appropriate namespace name and you're done. Best of all, these work with the -computeName parameter of Get-WmiObject for remote computer support!

Related Content:

Comments

Add A Comment
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.