To make use of the CIMinstances you would need to learn about the WQL.
A quick and dirty line of code would look like this:

Get-CimInstance -Query "SELECT Startmode,state FROM win32_Service WHERE state!='running' AND startmode='auto'"
Get-WMIObject -List| Where{$ -match "^Win32_"} | Sort Name | Format-Table Name

OR cimclass:
Get-CimClass -ClassName * | Where{$_.cimclassname -match "^Win32_"} | Sort cimclassname | format-table CimClassName

For more info on cim see these resources introduction CimInstance and Scripting guy Article
For more info on CIM Methods and Parameters CIM Methods and parameters

on me

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License