This tutorial will show you how to add a Safe Mode cascading desktop context menu with options to restart in normal mode, safe mode, safe mode with networking, and safe mode with command prompt in Windows 11.
Safe mode starts Windows in a basic state, using a limited set of files and drivers. If a problem doesn't happen in safe mode, this means that default settings and basic device drivers aren't causing the issue. Observing Windows in safe mode enables you to narrow down the source of a problem, and can help you troubleshoot problems on your PC.
There are three different versions of safe mode:
- Safe Mode: Starts Windows with a minimal set of drivers and services without an Internet connection.
- Safe Mode with Networking: Starts Windows in safe mode and includes the network drivers and services needed to access the Internet or other computers on your network.
- Safe Mode with Command Prompt: Starts Windows in safe mode without an Internet connection with a Command Prompt window instead of the usual Windows interface. This option is intended for IT pros and system admins.
You must be signed in as an administrator to add, remove, and use the Safe Mode context menu.
If you Restart to Safe Mode with Command Prompt, you can do this below to return to normal mode:
1) In the command prompt, type explorer, and press Enter.
2) When explorer starts and you see the taskbar, close the Help and Support window.
3) Right click or press and hold on the solid black desktop, click/tap on Safe Mode, and click/tap on Restart in Normal Mode.
You will not be able to use multiple displays while in Safe Mode.
EXAMPLE: Safe Mode desktop context menu
You will need to click/tap on Show more options first by default.
Here's How:
1 Do step 2 (add) or step 3 (remove) below for what you would like to do.
2 Add "Safe Mode" to Desktop Context Menu
A) Click/tap on the Download button below to download the file below, and go to step 4 below.
Add_Safe_Mode_to_Desktop_context_menu.reg
Download
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode]
"icon"="bootux.dll,-1032"
"MUIVerb"="Safe Mode"
"Position"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\001-NormalMode]
@="Restart in Normal Mode"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\001-NormalMode\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/c,bcdedit /deletevalue {current} safeboot & bcdedit /deletevalue {current} safebootalternateshell & shutdown -r -t 00 -f' -Verb runAs\""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\002-SafeMode]
@="Restart in Safe Mode"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\002-SafeMode\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/c,bcdedit /set {current} safeboot minimal & bcdedit /deletevalue {current} safebootalternateshell & shutdown -r -t 00 -f' -Verb runAs\""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\003-SafeModeNetworking]
@="Restart in Safe Mode with Networking"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\003-SafeModeNetworking\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/c,bcdedit /set {current} safeboot network & bcdedit /deletevalue {current} safebootalternateshell & shutdown -r -t 00 -f' -Verb runAs\""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\004-SafeModeCommandPrompt]
@="Restart in Safe Mode with Command Prompt"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode\shell\004-SafeModeCommandPrompt\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/c,bcdedit /set {current} safeboot minimal & bcdedit /set {current} safebootalternateshell yes & shutdown -r -t 00 -f' -Verb runAs\""
3 Remove "Safe Mode" from Desktop Context Menu
This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 4 below.
Remove_Safe_Mode_from_Desktop_context_menu.reg
Download
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\SafeMode]
4 Save the .reg file to your desktop.
5 Double click/tap on the downloaded .reg file to merge it.
6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
7 You can now delete the downloaded .reg file if you like.
That's it,
Shawn Brink
Attachments
Last edited: