Listing WMI Namespaces installed on a host


Ladies and Gents


Many months ago I posted a script on how to search a namespace for different classes.  The post is here


A common question I then get asked is “How do I know what WMI namespaces are installed on a system?”  The answer is not immediately obvious so I thought I’d share it with you all.


 






 


Get-WMIObject -class __Namespace -namespace root | Format-Table name


 


 


I get the following output from my Vista RTM machine.






 


name


—-


subscription


DEFAULT


MicrosoftDfs


CIMV2


Cli


Nap


SECURITY


SmsDm


RSOP


ccm


WMI


directory


Policy


ServiceModel


SecurityCenter


MSAPPS12


Microsoft


Aspnet


 


So by searching the host for a list of namespaces, and then searching each namespace for the classes available you can find some really useful stuff.


 


Hope this helps


 


BenP

Comments (4)

  1. ctl00$_$ctl00$_$ctl02$_$form$_$tbname says:

    Temeka pictures rachelle lewis <a href= http://temeka-rachelle-lewis.barerube.cn >Temeka lewis rachelle pictures</a> [url=http://temeka-rachelle-lewis.barerube.cn]Temeka lewis rachelle pictures[/url]

  2. ctl00$_$ctl00$_$ctl02$_$form$_$tbname says:

    lake <a href= http://gsdgdsc.blogspot.com >lake</a> [url=http://gsdgdsc.blogspot.com]lake[/url]

  3. Remco says:

    I get "invalid class _Namespace"

  4. Mark says:

    @Remco your gettin that ’cause you miss a "_". It’s "__Namespace" not "_Namespace"