Personalization Add Safe Mode to Desktop Context Menu in Windows 11


  • Staff
Startup_Settings_banner.png

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.
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.

If you often need to boot into Safe mode, this context menu will make it much easier and faster to do so and go back to normal mode when ready.


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.


Show_more_options.png
Safe_Mode_context_menu.png



Here's How:

1 Do step 2 (add) or step 3 (remove) below for what you would like to do.


2 To 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


(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 To 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


(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

  • Startup_Settings.png
    Startup_Settings.png
    1 KB · Views: 32
  • Add_Safe_Mode_to_Desktop_context_menu.reg
    4.2 KB · Views: 101
  • Remove_Safe_Mode_from_Desktop_context_menu.reg
    520 bytes · Views: 90
Last edited:

Samin_81

Member
Local time
9:26 PM
Posts
6
OS
Windows 11 PRO v.21H2 (OS BUILD 22000.282)
This is very useful for me. Thanks Admin.
 

My Computer

System One

  • OS
    Windows 11 PRO v.21H2 (OS BUILD 22000.282)
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUSTeK Computer INC.
    CPU
    Intel Core 2 Duo E4600 @ 2.40GHZ Conroe
    Motherboard
    ASUSTeK Computer INC. P5GC-MX/GBL (LGA 775)
    Memory
    4GB DDR2 (667mhz)
    Graphics Card(s)
    ASUS EAH4670 series 512MB
    Sound Card
    ATI High Definition Audio Device
    Monitor(s) Displays
    DELL E170S
    Screen Resolution
    1028x1024 75hz
    Hard Drives
    465GB Hitachi HGST HTS545050A7E680 ATA Device (SATA )
    465GB Seagate ST3500312CS ATA Device (SATA )
    PSU
    450Watt
    Case
    Custom
    Cooling
    DeepCool Mini
    Keyboard
    Crown USB
    Mouse
    Crown UB
    Internet Speed
    150mbps
    Browser
    Edge, FireFox
    Antivirus
    Microsoft Windows Defender

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
8:26 AM
Posts
3,694
OS
Windows 11 Pro for Workstations

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Placebo

Member
Local time
3:26 PM
Posts
6
OS
11
That is brilliant thank you so much! My Windows 11 install was absolutely refusing to start in safe mode no matter what I tried, installed this and worked a treat! :)
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 7 2700x
    Motherboard
    Asus X470-PRO
    Graphics Card(s)
    ATI Radeon RX 5700
    Monitor(s) Displays
    samsung 32” Odyssey G5
    Screen Resolution
    1440p
    Hard Drives
    Samsung NVME SSD 960 Evo 1tb
    Internet Speed
    Gigabit Up/Down
    Antivirus
    Kaspersky
Top Bottom