Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 2.06 KB

Get-SecureBootPolicy.md

File metadata and controls

70 lines (43 loc) · 2.06 KB
external help file Module Name online version schema
Microsoft.SecureBoot.Commands.dll-Help.xml
SecureBoot
2.0.0

Get-SecureBootPolicy

SYNOPSIS

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

SYNTAX

Get-SecureBootPolicy [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

PS C:\> Get-SecureBootPolicy | Format-List
Publisher: 77fa9abd-0359-4d32-bd60-28f4e78f784b 
Version  : 1

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

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

OUTPUTS

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.

NOTES

RELATED LINKS

Confirm-SecureBootUEFI

Format-SecureBootUEFI

Get-SecureBootUEFI

Set-SecureBootUEFI