Personalization Add Restart Explorer Context Menu in Windows 11

  • Staff
File_Explorer_banner.png

The explorer.exe process is the user shell for Windows, and is used by such items as the desktop, File Explorer, Start menu, notification area, and taskbar. Restarting the explorer.exe process is to stop and start it to effectively refresh explorer.exe. When the explorer.exe process has been stopped (aka: "end task"), you will see a blank black desktop with your mouse pointer showing until explorer.exe has been started again.

If you are having issues with the explorer.exe process (ex: hang), restarting the explorer.exe process may sort it without having to restart the computer.

If you are applying a registry tweak, sometimes you can just restart the explorer.exe process to apply instead of having to restart the computer or sign out and sign in.

This tutorial will show you how to add Restart Explorer to the desktop context menu of all users in Windows 11.


While you must be signed in as an administrator to add or remove the context menu, all users will be able to use it.

Restart Explorer context menu usage:

When you right click or press and hold on the desktop and click/tap on Restart Explorer in the context menu, you can then select to click/tap on Restart Explorer Now or Restart Explorer with Pause.

Restart Explorer Now will instantly restart the explorer.exe process now.

Restart Explorer with Pause will open a command prompt window indicating that it has stopped the explorer.exe process, and will wait on you to press any key before restarting the explorer.exe process again. This way you can use the context menu to stop explorer, do what you need to do while it's stopped, click/tap on the command prompt window to make it the active window again, and press any key to start explorer.

Restart_Explorer_with_Pause.png



Contents

  • Option One: Add "Restart Explorer" to Desktop Context Menu
  • Option Two: Remove "Restart Explorer" from Desktop Context Menu


EXAMPLE: 'Restart Explorer' desktop context menu
Show_more_options.png
Restart_Explorer_context_menu.png






OPTION ONE

Add "Restart Explorer" to Desktop Context Menu


1 Click/tap on the Download button below to download the file below, and save it to your desktop.

Add_Restart_Explorer_to_desktop_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer]
"icon"="explorer.exe"
"Position"="Bottom"
"SubCommands"=""


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer\shell\01menu]
"MUIVerb"="Restart Explorer Now"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer\shell\01menu\command]
@=hex(2):63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,63,00,20,00,74,\
  00,61,00,73,00,6b,00,6b,00,69,00,6c,00,6c,00,20,00,2f,00,66,00,20,00,2f,00,\
  69,00,6d,00,20,00,65,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,\
  00,78,00,65,00,20,00,20,00,26,00,20,00,73,00,74,00,61,00,72,00,74,00,20,00,\
  65,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,65,00,00,\
  00


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer\shell\02menu]
"MUIVerb"="Restart Explorer with Pause"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer\shell\02menu\command]
@=hex(2):63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,63,00,20,00,40,\
  00,65,00,63,00,68,00,6f,00,20,00,6f,00,66,00,66,00,20,00,26,00,20,00,65,00,\
  63,00,68,00,6f,00,2e,00,20,00,26,00,20,00,65,00,63,00,68,00,6f,00,20,00,53,\
  00,74,00,6f,00,70,00,70,00,69,00,6e,00,67,00,20,00,65,00,78,00,70,00,6c,00,\
  6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,65,00,20,00,70,00,72,00,6f,00,63,\
  00,65,00,73,00,73,00,20,00,2e,00,20,00,2e,00,20,00,2e,00,20,00,26,00,20,00,\
  65,00,63,00,68,00,6f,00,2e,00,20,00,26,00,20,00,74,00,61,00,73,00,6b,00,6b,\
  00,69,00,6c,00,6c,00,20,00,2f,00,66,00,20,00,2f,00,69,00,6d,00,20,00,65,00,\
  78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,65,00,20,00,26,\
  00,20,00,65,00,63,00,68,00,6f,00,2e,00,20,00,26,00,20,00,65,00,63,00,68,00,\
  6f,00,2e,00,20,00,26,00,20,00,65,00,63,00,68,00,6f,00,20,00,57,00,61,00,69,\
  00,74,00,69,00,6e,00,67,00,20,00,74,00,6f,00,20,00,73,00,74,00,61,00,72,00,\
  74,00,20,00,65,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,\
  00,65,00,20,00,70,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,77,00,68,00,\
  65,00,6e,00,20,00,79,00,6f,00,75,00,20,00,61,00,72,00,65,00,20,00,72,00,65,\
  00,61,00,64,00,79,00,20,00,2e,00,20,00,2e,00,20,00,2e,00,20,00,26,00,20,00,\
  70,00,61,00,75,00,73,00,65,00,20,00,26,00,26,00,20,00,73,00,74,00,61,00,72,\
  00,74,00,20,00,65,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,\
  78,00,65,00,20,00,26,00,26,00,20,00,65,00,78,00,69,00,74,00,00,00

2 Save the .reg file to your desktop.

3 Double click/tap on the downloaded .reg file to merge it.

4 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

5 You can now delete the downloaded .reg file if you like.






OPTION TWO

Remove "Restart Explorer" from Desktop Context Menu


This is the default setting.


1 Click/tap on the Download button below to download the file below, and save it to your desktop.

Remove_Restart_Explorer_from_desktop_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Explorer]

2 Save the .reg file to your desktop.

3 Double click/tap on the downloaded .reg file to merge it.

4 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

5 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • File_Explorer.png
    File_Explorer.png
    5.6 KB · Views: 33
  • Add_Restart_Explorer_to_desktop_context_menu.reg
    5.2 KB · Views: 93
  • Remove_Restart_Explorer_from_desktop_context_menu.reg
    520 bytes · Views: 62

BluePointLilac

New member
Local time
3:42 AM
Posts
3
There is a neat command "tskill explorer" without cmd flickering window, but doesn't apply to all versions of the system.
if you have tskill.exe in %systemroot%, the command is valid.
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\shell\RestartExplorer]
"MUIVerb"="Restart Explorer"
"Icon"="explorer.exe,0"
"Position"="bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\shell\RestartExplorer\command]
@="tskill explorer"

If you don't have tskill.exe, you can use this hide cmd window
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\shell\RestartExplorer]
"MUIVerb"="Restart Explorer"
"Icon"="explorer.exe,0"
"Position"="bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\shell\RestartExplorer\command]
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"cmd\",\"/c taskkill /f /im explorer.exe & start explorer.exe\",\"\",\"open\",0)(close)"

If you want delete this menu item, use this.
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\RestartExplorer]



And I'd like to recommend my open source free software to you, use it to easily modify menu items, but there is no good English translation, If you need to, you can go to Github

Screenshot-en.png
 
Last edited:

My Computer

System One

  • Operating System
    Windows 11
    Computer type
    PC/Desktop

RuLich

Member
Local time
9:42 PM
Posts
8
ContextMenuManager-master - How do I run it? there is no exe file. Thank you for answer.
 

My Computer

System One

  • Operating System
    Windows 10/11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 2600 Six
    Motherboard
    GIGABYTE B450 GAMING X / Seasonic Focus GX 550 Gold
    Memory
    32 GB DDR4
    Graphics Card(s)
    AMD Radeon RX 5500 XT
    Monitor(s) Displays
    Acer EK240YAbi - LED monitor 23,8"
    Hard Drives
    SSD 250GB / WDC 1000GB

BluePointLilac

New member
Local time
3:42 AM
Posts
3
ContextMenuManager-master - How do I run it? there is no exe file. Thank you for answer.
Github is a code hosting platform, the home page is to download the source code of the program, you need to download the latest version of the zip or exe file from the distribution page, there are some instructions for downloading in the ReadMe.

In addition, if you downloaded the source code by mistake, you can remove the compressed and uncompressed files, the program does not need them to run.
 

My Computer

System One

  • Operating System
    Windows 11
    Computer type
    PC/Desktop

RuLich

Member
Local time
9:42 PM
Posts
8
Thanks a lot
(y)
 

My Computer

System One

  • Operating System
    Windows 10/11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 2600 Six
    Motherboard
    GIGABYTE B450 GAMING X / Seasonic Focus GX 550 Gold
    Memory
    32 GB DDR4
    Graphics Card(s)
    AMD Radeon RX 5500 XT
    Monitor(s) Displays
    Acer EK240YAbi - LED monitor 23,8"
    Hard Drives
    SSD 250GB / WDC 1000GB

Brink

Administrator
Staff member
MVP
Local time
2:42 PM
Posts
1,310
  • Thread starter
  • Staff
  • #6
:shawn:
 

My Computers

System One System Two

  • Operating System
    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
Top Bottom