PS_ PowerShell Scripts
← All scripts/ HARDWARE
HARDWARE / COMMAND REFERENCE

Get-HWInfo

Queries Windows for hardware and OS inventory across 21 categories.

View Get-HWInfo.ps1 on GitHub ↗

Usage

(Get-HWInfo -Category CPU, RAM).CPU
Get-HWInfo

Parameters

-Category
Any subset of System, CPU, GPU, RAM, Disk, Board, BIOS, Network, Monitor, Audio, Bluetooth, USB, StorageHealth, Battery, Printer, Camera, TPM, Virtualization, Firmware, Display, OS; all by default.

Returns

An object whose properties are the requested named categories.

Note

Audio endpoints, Bluetooth PnP devices, USB controllers/devices, storage health/reliability, battery telemetry, printers, cameras/imaging devices, TPM, virtualization, firmware/Secure Boot, active displays and OS metadata. Display reports active source resolution, refresh rate, scaling, effective DPI and HDR when available. Bluetooth reports present PnP devices, not connection state. Camera includes legacy imaging devices. Unsupported provider values may be empty or null.