Confirm-SecureBootUEFI

Confirm-SecureBootUEFI

Confirms that Secure Boot is enabled by checking the Secure Boot status on the local computer.

Sintaxis

Confirm-SecureBootUEFI [ <CommonParameters>]

Descripción detallada

The Confirm-SecureBootUEFI cmdlet confirms that Secure Boot is enabled by checking the Secure Boot status on a UEFI computer.

If the computer supports Secure Boot and Secure Boot is enabled, then this cmdlet returns True.

If the computer supports Secure Boot and Secure Boot is disabled, then this cmdlet returns False.

If the computer does not support Secure Boot or is a BIOS (non-UEFI) computer, then this cmdlet returns an error displaying the following: Cmdlet not supported on this platform.

If Windows PowerShell® is not run in administrator mode, then this cmdlet returns an error displaying the following: Unable to set proper privileges. Access was denied.

This cmdlet requires that Windows PowerShell be run in administrator mode.

Parámetros

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • None

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • System.Boolean

    If the computer supports Secure Boot and Secure Boot is enabled, then this cmdlet returns True.
    If the computer supports Secure Boot and Secure Boot is disabled, then this cmdlet returns False.
    If the computer does not support Secure Boot or is a BIOS (non-UEFI) computer, then this cmdlet returns an error displaying the following: Cmdlet not supported on this platform.

Ejemplos

EXAMPLE 1

This example checks whether or not Secure Boot is enabled on the computer.

PS C:\> Confirm-SecureBootUEFI

Temas relacionados

Format-SecureBootUEFI

Get-SecureBootPolicy

Get-SecureBootUEFI

Set-SecureBootUEFI