Summary
Retrieves the serial number on the current device unless specified for another platform
Syntax
Get-HPDeviceSerialNumber [[-ComputerName] <String>] [<CommonParameters>]
Get-HPDeviceSerialNumber [-CimSession] <CimSession> [<CommonParameters>]
Description
This command retrieves the serial number on the current device unless specified for another platform via Windows Management Instrumentation (WMI). This command is equivalent to reading the SerialNumber property from the Win32_BIOS WMI class. If no parameters are specified, this command will create its own one-time-use CIMSession object using the current device and default the CIMSession to use DCOM protocol.
Parameters
Name | Argument | Description |
---|---|---|
ComputerName | <String> | Specifies a target computer for this command to create its own one-time-use CIMSession object using with. If not specified, this command will use the current device as the target computer for this command. The alias 'Target' can also be used for this parameter. |
CimSession | <CimSession> | Specifies a pre-established CIMSession object (as created by the New-CIMSession command) or a ComputerName in string format for this command to create a one-time-use CIMSession object with |
Examples
PS C:\> Get-HPDeviceSerialNumber