Search for a class

CIM

Get-CimClass -ClassName "*Process*" 

WMI

Get-WmiObject -List -Class "*Process*" 

List classes in another namespace using the -NameSpace

CIM

Get-CimClass -Namespace "root/SecurityCenter2" 

WMI

Get-WmiObject -Class "__Namespace" -Namespace "root" 

List available namespaces

To find available child-namespaces of root (or another namespace), query the objects in the __NAMESPACE-class for that namespace.

CIM

Get-CimInstance -Namespace "root" -ClassName "__Namespace" 

WMI

Get-WmiObject -List -Namespace "root" 

CIM find battery remaining

$bat = Get-CimInstance cim_battery
$bat.EstimatedChargeRemaining

List classes

Get-WmiObject -Namespace 'root\cimv2' -List "__*Registration*"