Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a command to restart computer into safe mode? [closed]

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.

like image 400
sSmacKk Avatar asked Oct 02 '12 14:10

sSmacKk


People also ask

How do I restart in Safe Mode from command prompt?

The easiest way to begin the process of booting into Safe Mode with Command Prompt is from the Windows 10 login screen. To access this screen, you can either log out, reboot your computer, or press the Ctrl+Alt+Delete keys a the same time. ) and then click on Restart.

How do I reboot my computer in Safe Mode remotely?

Solution. On the remote session window, go to Computer > Restart and Shutdown, or press Ctrl + Backspace. The Safe restart and reconnect option will restart the remote machine in Safemode with Networking.


Video Answer


2 Answers

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
like image 84
D3l_Gato Avatar answered Oct 19 '22 20:10

D3l_Gato


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.

like image 10
florentcm Avatar answered Oct 19 '22 19:10

florentcm