Share via


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