Restart - Add to Desktop Context Menu

How to Add "Restart" Computer to the Desktop Context Menu in Windows 7

   Information
This will show you how to add or remove Restart Computer to the desktop context menu in Vista and Windows 7.


EXAMPLE: Restart Computer in Desktop Context Menu
Example.jpg


Here's How:
1. To Add "Restart" to the Desktop Context Menu
A) Click on the Download button below to download the file below.
Add_Restart_to_Desktop_Context_Menu.reg

Download


B) Go to step 3.
2. To Remove "Restart" from the Desktop Context Menu
A) Click on the Download button below to download the file below.
Remove_Restart_from_Desktop_Context_Menu.reg

Download


3. Click on Save, and save the REG file to the desktop.

4. Double click on the REG file to merge it, and click on Run, Yes (UAC-Windows 7) or Continue (UAC-Vista), Yes, and OK when prompted to approve the merge.

5. When done, you can delete the downloaded .reg file if you like.

6. Right click on your desktop to see the change.
That's it,
Shawn







 

Attachments

Last edited:
Just going to ask you where this was. :) Thanks
 

My Computer My Computer

Computer Manufacturer/Model Number
Alienware
OS
Windows 7 Ultimate x64
CPU
I7
Motherboard
GA-X58-USB3
Memory
6 x 1.5V DDR3 DIMM sockets supporting up to 24 GB of system
Graphics Card(s)
GeForce GTX 580
Sound Card
Realtek ALC892 codec 2/4/5.1/7.1-channel
Monitor(s) Displays
NEC Display Solutions E321 Black 32"
Screen Resolution
1366 x 768
Hard Drives
OCZ Colossus LT Series OCZSSD2-1CLSLT1T 3.5" 1TB SATA II MLC Internal Solid State Drive
PSU
XFX Black Edition XPS-850W-BES 850W ATX12V
Case
Antec
Cooling
Zalman
Keyboard
Microsoft
Mouse
Microsoft
Thank you. :)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
This is more scared tricks. Accidentally click shout-down or restart on context menu then everything goes wrong.
 

My Computer My Computer

Computer Manufacturer/Model Number
Intel DG31PR (Intel Dual core 2.5 E5200 @ 2.5GHz)
OS
windows7 Ultimate SP1 x32bit
CPU
Intel
Motherboard
Intel DG31PR
Memory
Kinsgton 1GB an Transcend 2GB
Graphics Card(s)
Intel- onboard
Sound Card
Intel- onboard
Monitor(s) Displays
ViewSonic LCD Widescreen 19
Screen Resolution
1400x900
Hard Drives
Samsung 256GB
PSU
Legend
Case
Legend
Cooling
Intel
Keyboard
Seemo
Mouse
Prolink
Internet Speed
Download Speed-512Kbps, Upload Speed-128Kbps (ADSL wired)
Other Info
UPS- Prolink Pro650s
Router Prolink H5201
Sub Woofer - Creative 2.1
Yeah, that wouldn't be good, but that's why I placed them at the bottom of the context menu to help make it harder to accidentally click on it by mistake if someone wanted to have it in the context menu. :)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Yeah, that wouldn't be good, but that's why I placed them at the bottom of the context menu to help make it harder to accidentally click on it by mistake if someone wanted to have it in the context menu. :)

Ya Your the man buddy!
 

My Computer My Computer

Computer Manufacturer/Model Number
Intel DG31PR (Intel Dual core 2.5 E5200 @ 2.5GHz)
OS
windows7 Ultimate SP1 x32bit
CPU
Intel
Motherboard
Intel DG31PR
Memory
Kinsgton 1GB an Transcend 2GB
Graphics Card(s)
Intel- onboard
Sound Card
Intel- onboard
Monitor(s) Displays
ViewSonic LCD Widescreen 19
Screen Resolution
1400x900
Hard Drives
Samsung 256GB
PSU
Legend
Case
Legend
Cooling
Intel
Keyboard
Seemo
Mouse
Prolink
Internet Speed
Download Speed-512Kbps, Upload Speed-128Kbps (ADSL wired)
Other Info
UPS- Prolink Pro650s
Router Prolink H5201
Sub Woofer - Creative 2.1
Just wondering Shawn, is there a way to have these (shutdown, restart, logoff) context menu items not flash the cmd window like you can on the shortcuts by changing them to open minimized?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Win 10 Pro x64
CPU
Intel I5-2500K @3.3GHz
Motherboard
Asrock P67 Extreme4
Memory
16GB G.Skill Ripjaws X (4x4GB)
Graphics Card(s)
EVGA GeForce 750 Ti SC 2GB
Sound Card
ASUS Xonar DG 5.1 Channels 24-bit 96KHz PCI Interface Sound
Monitor(s) Displays
auria eq2367
Screen Resolution
1920 x 1080
Hard Drives
250GB Samsung 850 EVO SSD
1TB WD Blue
1TB Hitachi
PSU
SeaSonic X 650W 80 Plus Gold
Case
Corsair Obsidian 750D
Cooling
Corsair H60, Three 140mm case fans
Keyboard
Logitech Wireless Keyboard K520
Mouse
Logitech Wireless Mouse M310
Internet Speed
Wave Broadband ~ 100 dn 5 up
Antivirus
Windows Defender, Malwarebytes Premium
Browser
Edge, IE11, Chrome
Other Info
Laptop specs: HP g7-1365dx /
CPU: AMD A6-3420M APU with Radeon(tm) HD Graphics /
RAM: Crucial 8Gb (2x4Gb) /
SSD: Crucial M4-CT128M4SSD2 ATA Device/ FW 000F /
GFX: AMD Radeon HD 6520G /
OS: Windows 10 Pro x64
Hello Derek,

You could, but it would involve changing the "command" entry below in the REG file for the context menu to run a BAT or VBS script file instead. The BAT or VBS file would have to be downloaded and saved somewhere as well.

Code:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer\command]
@="[B][COLOR=red]shutdown.exe -r -t 00 -f[/COLOR][/B]"

I just went with the easier way of doing it instead. :p
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Thanks Shawn, sounds like the way I would have done it too. :)

I was just curious.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Win 10 Pro x64
CPU
Intel I5-2500K @3.3GHz
Motherboard
Asrock P67 Extreme4
Memory
16GB G.Skill Ripjaws X (4x4GB)
Graphics Card(s)
EVGA GeForce 750 Ti SC 2GB
Sound Card
ASUS Xonar DG 5.1 Channels 24-bit 96KHz PCI Interface Sound
Monitor(s) Displays
auria eq2367
Screen Resolution
1920 x 1080
Hard Drives
250GB Samsung 850 EVO SSD
1TB WD Blue
1TB Hitachi
PSU
SeaSonic X 650W 80 Plus Gold
Case
Corsair Obsidian 750D
Cooling
Corsair H60, Three 140mm case fans
Keyboard
Logitech Wireless Keyboard K520
Mouse
Logitech Wireless Mouse M310
Internet Speed
Wave Broadband ~ 100 dn 5 up
Antivirus
Windows Defender, Malwarebytes Premium
Browser
Edge, IE11, Chrome
Other Info
Laptop specs: HP g7-1365dx /
CPU: AMD A6-3420M APU with Radeon(tm) HD Graphics /
RAM: Crucial 8Gb (2x4Gb) /
SSD: Crucial M4-CT128M4SSD2 ATA Device/ FW 000F /
GFX: AMD Radeon HD 6520G /
OS: Windows 10 Pro x64
No problem mate. :)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Works perfect, Thank you Shawn :cool:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built
OS
Win 7 Pro x64, Win 10 Pro x64, Linux Light x86
CPU
Core i7 3770K
Motherboard
Gigabyte GA-Z77P-D3
Memory
Crucial Ballistix Sport 8GB
Graphics Card(s)
ASUS GeForce GTX 650 Ti
Sound Card
On board
Monitor(s) Displays
ASUS 22 W/S
Screen Resolution
1920 x 1080
Hard Drives
Intel 320 Series SSD, WD Caviar Black 1TB
PSU
Corsair CX 750w
Case
Black Night
Cooling
120mm fans front/back, Coolermaster Hyper 212 Evo
Keyboard
Razer Blackwidow Expert 2013 Mechanical Keyboard
Mouse
Logitech G300 Gaming Mouse
Internet Speed
20mb Unlimited
Antivirus
ZA Antivirus + Firewall
Browser
Cyberfox
Other Info
Powered USB Hub, External Drives 3 x 1TB, Phone Dock.
You're welcome Stephanie. Glad it could help. :)
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Just wondering Shawn, is there a way to have these (shutdown, restart, logoff) context menu items not flash the cmd window like you can on the shortcuts by changing them to open minimized?

Hello Derek,

You could, but it would involve changing the "command" entry below in the REG file for the context menu to run a BAT or VBS script file instead. The BAT or VBS file would have to be downloaded and saved somewhere as well.

Code:
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer\command]
@="[B][COLOR=red]shutdown.exe -r -t 00 -f[/COLOR][/B]"
I just went with the easier way of doing it instead. :p


Maybe I'm a little oversensitive (cause it really doesn't matter if something pops up 0.5 sec before
the screen goes down for reboot), but I have NirCmd in my system folder, so I use it to do the job :

Code:
[B]Windows Registry Editor Version 5.00[/B]

; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/184033-restart-add-desktop-context-menu.html

; Modified by Tom Hartwald to use NirCmd for Reboot (2013-11-05)

[B][HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer][/B]
"icon"="shell32.dll,-290"
"Position"="Bottom"

[B][HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer\[COLOR=Blue]command[/COLOR]][/B]
@="nircmd.exe exitwin reboot"
Note: Only the original line below "command" is exchanged with the new one.

You need the NirCmd - Windows command line tool
in your "C:\Windows\System32" folder, it's described for example here in the Forum :
Eject and Close CD/DVD Tray - Add to Desktop Context Menu


@ derekimo :
You can use NirCmd for your requests:

nircmd.exe exitwin logoff
nircmd.exe exitwin shutdown

and for much more : :) View NirCmd Full Help File


Regards,
Tom
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64
CPU
Intel Sandy Bridge i5 2500K
Motherboard
ASUS P8 H67-M Pro Rev. 3
Memory
16 GB
Graphics Card(s)
Intel internal HD 3000
Sound Card
Realtek internal High Def Audio
Monitor(s) Displays
ViewSonic 24"
Case
Cooler Master - HAF 932 (Big Tower)
Cooling
CPU: EKL AG "Alpenfohn Brocken"
Mouse
SteelSeries Sensei
Antivirus
Kaspersky Internet Security
Browser
Avant (Tri-Core: IE, FireFox & Chrome Engine)
Back
Top