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 the latest script version here and use it according to your needs.
- 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
- 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.
If you have any problems or want to suggest a new feature please fill a bug.
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).
- ConfigJon - https://github.com/ConfigJon/Firmware-Management
- SCConfigMgr - https://www.scconfigmgr.com/
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.
This Repository is licensed to you under the MIT license.
See the LICENSE file in the project root for more information.