Get-HPDeviceSerialNumber



Summary

Get the device serial number

Syntax

Get-HPDeviceSerialNumber [[-ComputerName] <String>] [<CommonParameters>]

Get-HPDeviceSerialNumber [-CimSession] <CimSession> [<CommonParameters>]

Description

Get the system serial number via Windows WMI. This command is equivalent to reading the SerialNumber property in the Win32_BIOS WMI class.

Parameters

Name Argument Description
ComputerName <String> Execute the command on specified target computer. If not specified, the command is executed on the local computer.
CimSession <CimSession> A pre-established CIM Session (as created by New-CIMSession cmdlet). Use this to pass a preconfigured session object to optimize remote connections or specify the connection protocol (Wsman or DCOM). If not specified, the function will create its own one-time use CIM Session object, and default to DCOM protocol.

Examples


PS C:\> Get-HPDeviceSerialNumber