The Common Information Model (CIM) is an industry-standard, object-oriented model for representing and managing system and resource information. In PowerShell automation, it provides a practical alternative to deprecated Windows Management Instrumentation (WMI) for querying computers and services. section 9.1
Use CIM when a PowerShell tool needs to:
- Query computer hostname, manufacturer, model, operating-system details, memory, processor data, and system-drive space. section 9.1
- Discover and invoke a class for changing a Windows service's logon name and password when Set-Service cannot perform the task. section 9.6.1 section 9.6.2
- Verify that CIM works before building functions or script modules. section 10.3
Check CIM locally
Run Get-CimInstance win32_service -computername localhost from an administrative PowerShell session. Use a safe service such as BITS or Print Spooler for experimentation, then restore BITS to LocalSystem with no password. section 9.6.2 section 10.3

