Get-HPDeviceBootInformation



Summary

Retrieves the current boot mode and uptime on the current device

Syntax

Get-HPDeviceBootInformation [<CommonParameters>]

Description

This command returns an object containing the system uptime, last boot time, whether secure boot is enabled, and whether the system was booted in UEFI or Legacy mode.

Parameters

No parameters defined.

Examples


PS C:\> $IsUefi = (Get-HPDeviceBootInformation).Mode -eq "UEFI"