Screensie
← All guides

Command Line

Basic WMI Operations with PowerShell CIM

Query Windows hardware and operating-system inventory using the supported CIM cmdlets.

Updated September 2, 2026Difficulty: EasyTime: 7 minApplies to: Windows, Windows 10, Windows 11

Follow the steps in order and stop if the screen or target does not match what is described. Use administrator access only when the task requires it.

Open PowerShell

These inventory queries normally work in a standard session.

Read operating-system data

Query Win32_OperatingSystem and select useful properties.

Command
Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber, LastBootUpTime

Read computer hardware

Query Win32_ComputerSystem.

Command
Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Manufacturer, Model, TotalPhysicalMemory

Read BIOS details

Query Win32_BIOS.

Command
Get-CimInstance -ClassName Win32_BIOS | Select-Object Manufacturer, SMBIOSBIOSVersion, SerialNumber

Discover class properties

Pipe one instance to Get-Member.

Command
Get-CimInstance -ClassName Win32_LogicalDisk | Get-Member

Prefer explicit properties

Avoid publishing full inventory output because it can contain device identifiers.