Categories

W2KSG: WMI classes

WMI is arranged in a hierarchy of namespaces and classes.  To see the namespaces on a machine use

## Listing 6.10
Get-WmiObject -Class __NAMESPACE -Namespace root | Select Name

If you want to see if there are any namespaces within name spaces you will need to check each namespace in a similar manner.  I'll leave this as an exercise - think of recursion.

To see the WMI classes in a namespace use

## Listing 6.13
Get-WmiObject -List

This will list the classes of the default namespace - root\cimv2.  If you want to see anyother namespace use the namespace parameter.

 

Share this post :

 

Technorati Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>