# Get-CimInstance

*noun*

say it: **“GET SIM IN-stuns”** **/ˈɡɛt ˈsɪm ˈɪnstəns/**

A PowerShell command that reads facts about a Windows PC, such as its build, last restart or free disk space, from Windows' catalog of facts.

## What does **Get-CimInstance** do?

`Get-CimInstance` reads Windows' catalog of facts about the computer. Name a class with `-ClassName` and you get one object per thing it describes: the operating system, each drive, the battery. `Select-Object` picks the facts you need, which also keeps personal ones, such as the serial number, off your screen.

```powershell
Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object Caption, BuildNumber, LastBootUpTime
Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DeviceID='C:'"
```

## In a sentence

- “**Get-CimInstance** with Win32_OperatingSystem gave the build number the help desk asked for.”
- “Sam used **Get-CimInstance** to see how much space was left on C:.”

Level: Journeyman · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/get-ciminstance
