Command Line
Basic WMI Operations with PowerShell CIM
Query Windows hardware and operating-system inventory using the supported CIM cmdlets.
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, LastBootUpTimeRead computer hardware
Query Win32_ComputerSystem.
Command
Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Manufacturer, Model, TotalPhysicalMemoryRead BIOS details
Query Win32_BIOS.
Command
Get-CimInstance -ClassName Win32_BIOS | Select-Object Manufacturer, SMBIOSBIOSVersion, SerialNumberDiscover class properties
Pipe one instance to Get-Member.
Command
Get-CimInstance -ClassName Win32_LogicalDisk | Get-MemberPrefer explicit properties
Avoid publishing full inventory output because it can contain device identifiers.