Tuesday, October 18, 2016

Rebooting into Safe Mode from the recovery environment's command prompt

Today I worked on a Windows 10 machine that refused to boot. It could get to the recovery environment, but the "Startup settings" entry was missing, so I couldn't get to Safe Mode via normal means. It did offer a command prompt though, and some Googling turned up this Stack Overflow answer, which sets a flag in the BCD to boot to Safe Mode.

Note that in the recovery environment, {current} isn't the offline system's boot record. Instead, you can get the desired target's GUID from bcdedit -enum -v, then supply it to the command that sets the flag:

bcdedit /set {GUID} safeboot minimal

Reboot, and the system comes up into Safe Mode. Once you're finished fixing things, msconfig has a GUI that lets you go back to normal mode.

No comments:

Post a Comment