PowerTip: Use PowerShell to List Top-Level WMI Namespaces

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon