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 – rootcimv2.  If you want to see anyother namespace use the namespace parameter.

 


Share this post :

 

Technorati Tags: ,

About these ads
This entry was posted in PowerShell and WMI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s