Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

PowerTip: Use PowerShell to List Top-Level WMI Namespaces

$
0
0

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


Viewing all articles
Browse latest Browse all 36188

Trending Articles



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