Query Hardware With Get-CimInstance
Read WMI/CIM classes for CPU, disk, BIOS and more as objects.
01Command
$ Get-CimInstance Win32_Processor | Select-Object Name, NumberOfCores, MaxClockSpeed02What it does
CIM cmdlets expose the same WMI data that management tools use, but return objects that filter cleanly and work against remote computers. Inventory scripts built on this are portable across machines and easy to export.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Get-CimInstanceEvidence: Retrieves CIM instances such as WMI hardware classes.
Last verified: 2026-10-13 · Category: System & Settings
06Related solutions
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.