Skip to content

Instantly share code, notes, and snippets.

@herodrigues
Forked from dragon788/longwindedname.md
Last active March 18, 2019 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herodrigues/19d8311e5d17f0248f9065af0f293379 to your computer and use it in GitHub Desktop.
Save herodrigues/19d8311e5d17f0248f9065af0f293379 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

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