A CIM class identifies a category of managed Windows resource and exposes properties or operations for querying and administration. Practical automation often combines several classes to assemble the required information. section 9.3
Common discovery patterns include:
- Query Win32_OperatingSystem and Win32_ComputerSystem for operating-system and computer details. section 9.3
- Use a discovered system-drive value to retrieve the corresponding Win32_LogicalDisk instance and its free space. section 9.3
- Discover a Win32_ class capable of changing a service logon name and password, then test it safely. section 9.6.2
Discover before scripting
Run Get-CimInstance at the command line, inspect exact property values and output formats, test multiple queries, and record working commands before building the script. section 9.3 section 9.7
