Your Computer's Facts: `Get-CimInstance`

Get-CimInstance asks Windows' own catalog of facts about the computer, one class at a time, such as Win32_OperatingSystem for the Windows version and the last restart, Win32_LogicalDisk for the disks and Win32_Battery for the battery, and a calculated property turns its bytes into gigabytes.

Updated

Cheat sheet for the lesson Your Computer's Facts: `Get-CimInstance`: Get-CimInstance asks Windows' own catalog of facts about the computer, one class at a time, such as Win32_OperatingSystem for the Windows version and the last restart, Win32_LogicalDisk for the disks and Win32_Battery for the…
Category
PowerShell
Level
Journeyman
Tags
Calculated Property, cim-class, get-ciminstance, operating-system, powershell, select-object