Is there a command to restart computer into safe mode?

sSmacKk picture sSmacKk · Oct 2, 2012 · Viewed 224.5k times · Source

I would like to know if there is a command that could be written in the command line to restart the computer and make it boot in safe mode?

If there isn't a command like this, is there any other way to do it?

I would like the process to be fully automated after launching the command.

Answer

D3l_Gato picture D3l_Gato · Oct 2, 2012

My first answer!

This will set the safemode switch:

bcdedit /set {current} safeboot minimal 

with networking:

bcdedit /set {current} safeboot network

then reboot the machine with

shutdown /r

to put back in normal mode via dos:

bcdedit /deletevalue {current} safeboot