Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the title says I would like a script that tells Windows that the next boot should be into Safe Mode or at least that the F8 menu should be presented on next boot.

Booting into WinRE (Launch startup repair...) is probably even more un-doable.

I looked over bcdedit options but didn't see anything like this. I know msconfig has an option for Safe Boot but it's GUI only.

Currently if I want to boot into Safe Mode or launch WinRE then I have to forcefully restart my PC first for those options to be presented during boot (F8 does not bring up the Safe Mode option under normal conditions).

I'm using Windows 7 x64.

share|improve this question
F8 does work, but there's only about a half-second window, so you have to really hammer the key to get it to show. Not fun. But a direct answer below... – SilverbackNet Jan 7 '11 at 23:29

bcdedit /default <id> is how you force it to boot into a non-default partition. Use bcdedit to list them and select the identifier you want. To force the current OS into safe mode at next startup, bcdedit /set {current} safeboot network.

Remember to undo all of this afterward; it might be safer to follow the directions here and create a new id for the safemode option, so that it's easy to switch back.

share|improve this answer
Intresting.I will defenetly look into this. – TMRW Jan 7 '11 at 23:59
Ok the code above worked.To disable i used this: bcdedit /deletevalue safeboot – TMRW Jan 8 '11 at 2:15
Still have problem not able to boot winre but perhaps found something:… – TMRW Jan 8 '11 at 2:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.