Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As the title says. I would like a script that tells windows that the next boot should be into safe mode or atleast that the F8 menu should be presented next boot.

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

I looked over bcdedit options but did'nt see anything like this.I know msconfig has an option for safe boot but it's gui only.

Currently if i wan't 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).

Im 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

1 Answer 1

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: windowsitpro.com/article/installation2/… –  TMRW Jan 8 '11 at 2:17

Your Answer

 
discard

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.