What Exactly Does Bcdedit Do?
In Windows, to Start in Safe Mode We Can Execute in the Terminal, with Privileges, the Command: %Windir%\System32\Bcdedit. Exe /Set {Default} Safeboot Minimal...
In windows, to start in safe mode we can execute in the terminal, with privileges, the command:
%windir%\system32\bcdedit.exe /set {default} safeboot minimal
And to return to normal mode, we execute:
%windir%\system32\bcdedit.exe /deletevalue {default} safeboot
I 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:00000001
Normal mode. Delete the previous key or:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Option]
"OptionValue"=dword:00000000
1 Answer
To answer your specific question, it modifies the Boot Configuration Data which you can read about on the Microsoft Docs site here
BCDEdit 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.