HP/HPE Model Number, Part Numbers, and Serial Numbers via Powershell

article #1415, updated 1382 days ago

Model:

(Get-CimInstance -ClassName Win32_ComputerSystem).Model

Part number (if present; may be in one, the other, or both locations):

(Get-CimInstance -ClassName Win32_ComputerSystem).SystemSKUNumber
(((Get-CimInstance -ClassName Win32_ComputerSystem).OEMStringArray)[1] -split " ",3)[2]

Serial number:

(Get-CimInstance -ClassName Win32_BIOS).SerialNumber

All:

(Get-CimInstance -ClassName Win32_ComputerSystem).Model
(Get-CimInstance -ClassName Win32_ComputerSystem).SystemSKUNumber
(((Get-CimInstance -ClassName Win32_ComputerSystem).OEMStringArray)[1] -split " ",3)[2]
(Get-CimInstance -ClassName Win32_BIOS).SerialNumber

Categories: