Idera nSoftware Compellent

Finding Out Interesting WMI Classes

WMI provides a wealth of information as long as you know the name of the WMI class that represents the entity you are seeking. Fortunately, Get-WMIObject has a built-in dictionary that lists all available WMI classes in the default namespace:

Get-WMIObject -list

To quickly filter this list, use Select-String. Use this to find all WMI classes related to printing:

Get-WMIObject -list | Select-String Print

You'll get the complete WMI class path and can safely ignore everything up to the colon.


Posted Mar 13 2009, 08:00 AM by ps1

Comments

Tim Benninghoff wrote PowerShell and WMI namespaces
on 05-19-2009 9:17 PM

When I wrote my previous blog post about blogging, I remembered how much of a sucker for the concept

Copyright 2010 PowerShell.com. All rights reserved.