Get-HPDeviceUptime



Summary

Get system uptime

Syntax

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

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

Description

Get the system boot time and uptime

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