In windows, to start in safe mode we can execute in the terminal, with privileges, the command:
%windir%\system32\bcdedit.exe /set {default} safeboot minimalAnd to return to normal mode, we execute:
%windir%\system32\bcdedit.exe /deletevalue {default} safebootI want to know is what exactly does bcdedit do? (And if I can do the same with registry keys?)
Thanks
Answer to the second part of the question (regedit keys) (source)
safe mode:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Option]
"OptionValue"=dword:00000001Normal mode. Delete the previous key or:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Option]
"OptionValue"=dword:00000000 3 1 Answer
To answer your specific question, it modifies the Boot Configuration Data which you can read about on the Microsoft Docs site here
0BCDEdit is a command-line tool for managing Boot Configuration Data (BCD).
BCD files provide a store that is used to describe boot applications and boot application settings.
BCDEdit can be used for a variety of purposes, including creating new stores, modifying existing stores, adding boot menu options, and so on.