Get-SecureBootPolicy

Get-SecureBootPolicy

Gets the publisher GUID and the policy version of the Secure Boot configuration policy.

Sintaxis

Get-SecureBootPolicy [ <CommonParameters>]

Descripción detallada

The Get-SecureBootPolicy cmdlet gets the publisher GUID and the policy version of the Secure Boot configuration policy.

The cmdlet will run on both UEFI and BIOS (non-UEFI) computers.

If the computer does not support Secure Boot or is a non-UEFI computer, then this cmdlet returns an error displaying the following: Secure Boot policy is not enabled on this machine.

If Windows PowerShell® is not run in administrator mode, then this cmdlet returns an error displaying the following: Incorrect authentication data.

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.

  • Microsoft.SecureBoot.Commands.SecureBootPolicy

    The SecureBootPolicy object contains information about the Secure Boot policy in place for the computer.
    Contains the following fields:
    -- A GUID named publisher.
    -- An unsigned 32-bit integer named version.

Ejemplos

EXAMPLE 1

This example gets the publisher GUID and the policy version of the Secure Boot configuration policy.

PS C:\> Get-SecureBootPolicy | Format-List

Temas relacionados

Confirm-SecureBootUEFI

Format-SecureBootUEFI

Get-SecureBootUEFI

Set-SecureBootUEFI