Skip to content

A script to manage the boot oder in UEFI from Windows. The script is compatible to OS deployment systems like SCCM or Matrix42 Empirum.

License

Notifications You must be signed in to change notification settings

htcfreek/uefi-boot-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UEFI Boot Order Management

This PowerShell script can manage and report the boot order configuration of the UEFI on any computer. No password or external tool is required and every manufacturer is supported. You can use the script standalone or integrated in your OS deployment workflows (SCCM, Matrix42 Empirum and others).

Features

  • Read the current configuration and write it on your screen or to a file.
  • Change the boot order based on a configuration variable in the script or a csv file.
  • The script can be used on any system language.

Requirements

  • Windows 10, Windows 11 or WinPE (For Windows 10 or newer.)
  • PowerShell 5.1
  • bcdedit.exe command line tool
  • Administrative permissions.
  • A system booted in UEFI mode.

Download and usage

Download the latest script version here and use it according to your needs.

Parameter examples

  • Set the UEFI boot order: Manage-UefiBootOrder.ps1 -SetBootOrder
  • Set the UEFI boot order using a csv file: Manage-UefiBootOrder.ps1 -SetBootOrder -CsvPath C:\Temp\nweBootOrder.csv
  • Output current boot order settings: Manage-UefiBootOrder.ps1 -GetBootOrder
  • Output current boot order settings to a TXT file: Manage-UefiBootOrder.ps1 -GetBootOrder -ExportPath C:\Temp\bootOrder.txt

Boot order list (CSV or script variable)

  • You can provide the settings using a csv file (without header line) or the script variable "BootEntriesList".
  • All entries are moved in UEFI to match the order in the csv/variable from top to bottom.
  • Supported are entries in the following Format: <name>;<first|last>
    • name is the name of the entry in UEFI's Boot menu. (The wildcards * and ? are supported, as long as a unique match is possible.)
    • first means that the entry is add at the top of the entries list.
    • last means that the entry is add at the bottom of the entries list.

Support

If you have any problems or want to suggest a new feature please fill a bug.

Credits

This repository includes scripts (and other files) that where created while my day to day job work. I want to say thank you to my employer who allows me to share them with you (the community).

Code credits

Disclaimer

Product names and company names are trademarks (™) or registered (®) trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

License

This Repository is licensed to you under the MIT license.
See the LICENSE file in the project root for more information.

About

A script to manage the boot oder in UEFI from Windows. The script is compatible to OS deployment systems like SCCM or Matrix42 Empirum.

Topics

Resources

License

Stars

Watchers

Forks