Get-HPDeviceUptime



Summary

Retrieves the system boot time and uptime of the current device unless specified for another platform

Syntax

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

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

Description

This command retrieves the system boot time and uptime of the current device unless specified for another platform.

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-HPDeviceUptime).BootTime