May 12th, 2013

PowerTip: Use PowerShell to List Top-Level WMI Namespaces

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to list top-level WMI namespaces.

Hey, Scripting Guy! Question How can I use Windows PowerShell to list the top-level WMI namespaces?

Hey, Scripting Guy! AnswerUse the Get-WmiObject cmdlet or the Get-CImInstance cmdlet and query for __NameSpace:

Windows PowerShell 2.0 syntax:

Get-WmiObject __NameSpace | select name

 

Windows PowerShell 3.0 syntax:

Get-CimInstance __NameSpace | select name

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.