Canonical: https://screensie.com/knowledge-base/command-line/powershell/wmi-cim-basics/

Query Windows hardware and operating-system inventory using the supported CIM cmdlets. Use Get-CimInstance instead of building new scripts around the.

[← All guides](https://screensie.com/knowledge-base/)



Command Line


# Basic WMI Operations with PowerShell CIM




## How do I query WMI with PowerShell CIM?




Use Get-CimInstance instead of building new scripts around the deprecated WMIC utility.




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




Updated 
September 2, 2026
Difficulty: Easy
Time: 7 min
Applies 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.




**Before you begin**


Save open work. Confirm that you are working on the intended computer and that you are authorized to make the change.




## 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.




**Verify the result**


Repeat the relevant check and confirm the intended result before considering the task complete.


 


## Related guides




[Command Line

### PowerShell Remoting Basics

Use authenticated PowerShell remoting on computers you are authorized to administer. 7 min · Easy](https://screensie.com/knowledge-base/command-line/powershell/powershell-remoting-basics/)




[Command Line

### PowerShell Network Basics

Inspect IP configuration, adapters, DNS, and TCP connectivity with PowerShell. 7 min · Easy](https://screensie.com/knowledge-base/command-line/powershell/powershell-network-basics/)




[Command Line

### PowerShell File and Folder Basics

List, create, copy, and move files with explicit PowerShell paths. 6 min · Easy](https://screensie.com/knowledge-base/command-line/powershell/powershell-file-basics/)
