PowerTip: List all available CIM classes by using PowerShell

Doctor Scripto

Summary: Use the Get-CimClass cmdlet to see all classes that you can query from.

Hey, Scripting Guy! Question How can I find a list of Common Information Model (CIM) classes in Windows so that I can ask my computer useful questions?

Hey, Scripting Guy! Answer Just run the Get-CIMClass cmdlet to get a list of all available classes in the default namespace in Windows. If you’d like to filter on the list, you can use a wildcard. In the following example, we show all classes that begin with Win32 and have the word, Disk, in it.

Get-CimClass Win32*Disk*

The Doctor


Discussion is closed.

Feedback usabilla icon