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

Im just wondering if there is a way to reboot the windows machine in safemode from command prompt. Looked at the man page of shutdown but it is not there.

share|improve this question
Tools like "Teamviewer" does this. – Aji Nov 14 '11 at 7:32
A "man page" for Shutdown? On Windows? – Canadian Luke Dec 3 '15 at 23:30
up vote 1 down vote accepted

In Windows Vista and later, the command

 bcdedit /set safeboot Minimal

will enable safe mode (of course you must run this from an administrative command prompt) and the command

 bcdedit /deletevalue safeboot

will turn it off again.

share|improve this answer
Thanks.Something new to me,but need to have a generic solution. – Aji Nov 15 '11 at 11:30
Generic in what sense? There is no solution that will work on all versions of Windows, if that's what you mean. – Harry Johnston Nov 15 '11 at 20:52
Yes thats what i mean,Something like editing a registry key or so. – Aji Nov 16 '11 at 5:22
There is no single solution that works for all versions of Windows. You need to figure out which version of Windows is running and use the appropriate solution. The solution Nicholas posted will work for versions prior to Vista, my solution will work for Vista and later. – Harry Johnston Nov 16 '11 at 20:47
so the editing via bcdedit is permament? That is, if you don't turn it off, the computer will keep booting into safe mode? – Ehtesh Choudhury May 13 '13 at 20:30

I'm not aware of a built-in command line method. You could in theory write one that sets the boot.ini flag and reboots the machine, though.

share|improve this answer
Could you flesh this out with an example of the boot.ini flag? – Ehtesh Choudhury May 13 '13 at 20:29

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.