28

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.

tshepang
  • 12,111
  • 21
  • 91
  • 136
iLoveWagons
  • 1,091
  • 4
  • 17
  • 30

2 Answers2

67

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
D3l_Gato
  • 1,297
  • 2
  • 17
  • 25
10

In the command prompt, type the command below and press Enter.

bcdedit /enum

Under the Windows Boot Loader sections, make note of the identifier value.

To start in safe mode from command prompt :

bcdedit /set {identifier} safeboot minimal 

Then enter the command line to reboot your computer.

florentcm
  • 111
  • 3