mirror of
https://github.com/jlobue10/SteamDeck_rEFInd.git
synced 2024-11-21 00:51:29 +08:00
11 lines
505 B
PowerShell
11 lines
505 B
PowerShell
# Setting next boot as rEFInd... Windows PowerShell script (Run as Administrator) for task scheduler
|
|
# Credit goes to Reddit user lucidludic for the idea and some code snippets (modified)
|
|
|
|
$REFIND_IDENT = bcdedit /enum FIRMWARE | Select-String -Pattern 'refind_x64.efi' -Context 2 | findstr "{"
|
|
$REFIND_GUID = ($REFIND_IDENT | Select-String "{.*}").Matches.Value
|
|
|
|
bcdedit /set "{fwbootmgr}" bootsequence "$REFIND_GUID" /addfirst
|
|
|
|
# Graphical boot glitch fix
|
|
bcdedit /set "{globalsettings}" highestmode on
|