Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Set-SecureBootUEFI

Set-SecureBootUEFI - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Set-SecureBootUEFI

Short description
Sets the Secure Boot-related UEFI variables such as Platform Key, Key Exchange Key, Signature Database and Forbidden Signature Database.

Syntax
Set-SecureBootUEFI [-AppendWrite [<SwitchParameter>]] [-OutputFilePath <String>] [-SignedFilePath <String>] -Name <Stri
ng> -Time <String> [<CommonParameters>]
Set-SecureBootUEFI [-Content <Byte[]>] [<CommonParameters>]
Set-SecureBootUEFI [-ContentFilePath <String>] [<CommonParameters>]





Description
The Set-SecureBootUEFI cmdlet takes a formatted content object that is created by running the Format-SecureBootUEFI cmd
let and a signed file, combines the twos and attempts to set the package in one of the Secure Boot variables. The suppo
rted Secure Boot variables include Platform Key (PK), Key Exchange Key (KEK), Signature Database (DB), and Forbidden Si
gnature Database (DBX).


This cmdlet returns an UEFIEnvironmentVariable object if successful, otherwise displays an error.


This cmdlet runs on both UEFI and BIOS (non-UEFI) computer.If the computer does not support Secure Boot or is a non-UEF
I 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: Un
able to set proper privileges. Access was denied.


If the signed file supplied to this cmdlet is not valid, then this cmdlet returns an error displaying the following: In
correct authentication data.