Skip to content

Instantly share code, notes, and snippets.

@dragon788
Created November 25, 2016 23:39
Show Gist options
  • Save dragon788/8d556cfe7c3795bf135dc775c90877e6 to your computer and use it in GitHub Desktop.
Save dragon788/8d556cfe7c3795bf135dc775c90877e6 to your computer and use it in GitHub Desktop.
Restore rEFInd as default boot manager from Windows after updates

After losing access to rEFInd yet again (Windows 10 Anniversary Edition), I was able to find the proper invocation of BCDEdit thanks to a helpful person on StackOverflow. None of the Microsoft documentation mentions this, but you NEED single quotes around {bootmgr} for sure if you are in the PowerShell shell, but possibly also if you are in the Command Prompt. This allowed me to add a new entry for rEFInd and I've had to do this multiple times so I know it works on Windows 10.

bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi 

becomes

bcdedit /set '{bootmgr}' path \EFI\refind\refind_x64.efi

To the author of rEFInd: You may want to update this in the couple places it is mentioned on your site, I'm not certain if the quotes also work on Windows 7 as I don't have an EFI based install to test with, but you could ask your readers to try and share.

One on the main page around here, http://www.rodsbooks.com/refind/installing.html#windows One was on this page, http://www.rodsbooks.com/refind/bootcoup.html#bcdedit

@AlD
Copy link

AlD commented Jun 24, 2019

This is not the correct command, either. At least in cmd.exe you need double quotes, i.e.:
bcdedit /set "{bootmgr}" path \EFI\refind\refind_x64.efi

@neugen86
Copy link

neugen86 commented Sep 1, 2020

This method turned out to be the most effective for me https://www.rodsbooks.com/refind/bootcoup.html#easyuefi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment