Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › 5 minute Tutorial! How to create a Shutdown and Restart button in the right-click menu. WINDOWS 8
New Posts  All Forums:Forum Nav:

5 minute Tutorial! How to create a Shutdown and Restart button in the right-click menu. WINDOWS 8

post #1 of 7
Thread Starter 
The following instructions involve modifying your registry. Be careful and modify at your own risk.

Here's a peek at the final product.

LL

INSTRUCTIONS ON HOW TO CREATE A SHUTDOWN AND RESTART BUTTON ON THE RIGHT-CLICK MENU FROM THE DESKTOP

To enter the registry type regedit in the any search bar and press enter.

To backup your current registry in case you make an uncorrectable mistake click on File>Export then choose a location to save a backup of the registry.

Firstly we will be modifying and working in the folder: HKEY_CLASSES_ROOT\DesktopBackround\Shell
right click on Shell, click New, Key then type Shut Down Computer (you can use anything you want other than ie.Goodbye, Shutdown or Turn Off) I will be using Shut Down Computer for this guide.

Right-click the Shut Down Computer folder, click New, click String Value, type icon, press Enter.

Right-click the icon string, click Modify and type shell32.dll,-329 in the Value Data field, and then click to OK.

Right-click the Shut Down Computer folder, click New, click String Value, type Position, press Enter.

Right-click the Position string, click Modify type Bottom or Top in the Value Data Field, click OK. This will place the icon in the top or bottom of the right click menu

Right-click the Shut Down Computer folder, click New, Key, type command, press Enter

Double-click the Default string, type shutdown.exe -s -t 00 -f in the value data field, click OK.

Now right click on the desktop and you will see a Shutdown icon.

Restart

Firstly we will be modifying and working in the folder: HKEY_CLASSES_ROOT\DesktopBackround\Shell
right click on Shell, click New, Key then type Restart Computer (again you can just use Restart, I will be using Restart Computer instead)

Right-click the Restart Computer folder, click New, click String Value, type icon, press Enter.

Right-click the icon string, click Modify, type shell32.dll,-221 in the Value Data field, click OK

Right-click the Restart Computer folder, click New, click String Value, type Position, press Enter.

Right-click the Position string, click Modify and type Bottom or Top in the Value Data field, click OK. The bottom or top corresponds to either the top or bottom of the right-click menu from the desktop.

Right-click the Restart Computer folder, click New, Key, type command, press Enter.

Double-click the Default string and then type shutdown.exe -r -t 00 -f, click OK.

That's it its done.





I will add more info as requested. Can also do Hibernate and Lock if anyone is interested just post in this thread.

Info from CPU Computer Power User Feb 2013 issue.
Edited by drnilly007 - 1/26/13 at 12:51pm
Fresh Phenom 007
(12 items)
 
 
CPUMotherboardGraphicsRAM
4790k ASUS Maximus Impact 7 GTX 470 G.Skill Trident 2400 Cas 9 
Hard DriveHard DriveCoolingOS
Plextor M5 Western Digital 2.5" D5 Custom Loop Windows 8 
MonitorKeyboardPowerCase
50" HDTV Logitech K400R Silverstone SX-600-G Bitfenix Phenom M 
  hide details  
Reply
Fresh Phenom 007
(12 items)
 
 
CPUMotherboardGraphicsRAM
4790k ASUS Maximus Impact 7 GTX 470 G.Skill Trident 2400 Cas 9 
Hard DriveHard DriveCoolingOS
Plextor M5 Western Digital 2.5" D5 Custom Loop Windows 8 
MonitorKeyboardPowerCase
50" HDTV Logitech K400R Silverstone SX-600-G Bitfenix Phenom M 
  hide details  
Reply
post #2 of 7

Nice tutorial.

Rep+.

Main Rig
(12 items)
 
  
CPUMotherboardGraphicsRAM
R7 1800x ASUS Prime 370 Pro RX 480 Corsair Dominator 
Hard DriveOptical DriveOSMonitor
Samsung 850 Pro  None Windows 10 Pro HP w19e: 1440x900 | Sony KDL40S-5100 1920x1080 
KeyboardPowerCaseMouse
CMStorm Quick Fire. CM 1050w  Cooler Master Cosmos II Roccat Kone XTD (Optical) 
  hide details  
Reply
Main Rig
(12 items)
 
  
CPUMotherboardGraphicsRAM
R7 1800x ASUS Prime 370 Pro RX 480 Corsair Dominator 
Hard DriveOptical DriveOSMonitor
Samsung 850 Pro  None Windows 10 Pro HP w19e: 1440x900 | Sony KDL40S-5100 1920x1080 
KeyboardPowerCaseMouse
CMStorm Quick Fire. CM 1050w  Cooler Master Cosmos II Roccat Kone XTD (Optical) 
  hide details  
Reply
post #3 of 7
NICE!!!!!! Its a shame we have to do these kind of things when MS should have done it for us. No one used the start button they claimed. GRRR
Blue & Red
(10 items)
 
  
CPUMotherboardGraphicsGraphics
AMD FX-6100 M5A97 LE R2.0 XFX HD 7770 black edition Ghost  XFX HD 7770 black edition Ghost  
RAMRAMHard DriveOS
Gskill  Gskill Samsung 840 Pro SSD Windows 10 pro X64 
MonitorKeyboard
ASUS 23.5 1080P Steelseries 
  hide details  
Reply
Blue & Red
(10 items)
 
  
CPUMotherboardGraphicsGraphics
AMD FX-6100 M5A97 LE R2.0 XFX HD 7770 black edition Ghost  XFX HD 7770 black edition Ghost  
RAMRAMHard DriveOS
Gskill  Gskill Samsung 840 Pro SSD Windows 10 pro X64 
MonitorKeyboard
ASUS 23.5 1080P Steelseries 
  hide details  
Reply
post #4 of 7
Quote:
Originally Posted by That_guy3 View Post

NICE!!!!!! Its a shame we have to do these kind of things when MS should have done it for us. No one used the start button they claimed. GRRR

Nice I like this but I've just gotten use to pressing alt+F4 from desktop and shutting down that way
LIttle Giant
(14 items)
 
 
Old HP upgraded
(13 items)
 
CPUMotherboardGraphicsGraphics
3570k Asus P8Z77-I Deluxe  AMD Radeon HD Myst 7870 Tahiti Accelero Twin Turbo II 
RAMHard DriveHard DriveMonitor
16GB Corsair 1600  Samsung 840pro Samsung 500 GB 2.5" 7200 HDD Asus VG236h 120hz  
KeyboardPowerCaseMouse
Corsair K90 Corsair 500w Bitfenix Prodigy  Logitech G9x 
Mouse PadAudio
Rocketfish Hard dual sided Creative 2.1 speakers/Razer Megalodon/Charasis  
CPUMotherboardGraphicsRAM
I5 2500k Asus P8Z68-lx XFX 685X Pny 
Hard DriveHard DriveHard DriveOptical Drive
Wd caviar black FAALS Wd caviar blue  Ocz agility 2 Ssd Asus dvd burner 
CoolingOSMonitorKeyboard
Frio Win 7 home premium Hp 2207 Logitech G11 (rev 1) 
PowerCaseMouseMouse Pad
Pc power and colling 775w Antech 900 Logitech G9x Rocketfish 
Audio
Razer megalodon 
CPUMotherboardGraphicsHard Drive
Athlon X2 4800+ ESC Nettle2 Asus 5770 wd Black 
Hard DriveOSMonitorKeyboard
SSD OCZ agility II Win 7 home Premium  Hp w2207 Logitech G11 
PowerCaseMouseMouse Pad
750w PC power and cooling Antec 900 Logitech G9 Rocket fish 
Audio
Razer Megelodon  
  hide details  
Reply
LIttle Giant
(14 items)
 
 
Old HP upgraded
(13 items)
 
CPUMotherboardGraphicsGraphics
3570k Asus P8Z77-I Deluxe  AMD Radeon HD Myst 7870 Tahiti Accelero Twin Turbo II 
RAMHard DriveHard DriveMonitor
16GB Corsair 1600  Samsung 840pro Samsung 500 GB 2.5" 7200 HDD Asus VG236h 120hz  
KeyboardPowerCaseMouse
Corsair K90 Corsair 500w Bitfenix Prodigy  Logitech G9x 
Mouse PadAudio
Rocketfish Hard dual sided Creative 2.1 speakers/Razer Megalodon/Charasis  
CPUMotherboardGraphicsRAM
I5 2500k Asus P8Z68-lx XFX 685X Pny 
Hard DriveHard DriveHard DriveOptical Drive
Wd caviar black FAALS Wd caviar blue  Ocz agility 2 Ssd Asus dvd burner 
CoolingOSMonitorKeyboard
Frio Win 7 home premium Hp 2207 Logitech G11 (rev 1) 
PowerCaseMouseMouse Pad
Pc power and colling 775w Antech 900 Logitech G9x Rocketfish 
Audio
Razer megalodon 
CPUMotherboardGraphicsHard Drive
Athlon X2 4800+ ESC Nettle2 Asus 5770 wd Black 
Hard DriveOSMonitorKeyboard
SSD OCZ agility II Win 7 home Premium  Hp w2207 Logitech G11 
PowerCaseMouseMouse Pad
750w PC power and cooling Antec 900 Logitech G9 Rocket fish 
Audio
Razer Megelodon  
  hide details  
Reply
post #5 of 7
Thread Starter 
Yes Alt+F4 an old classic!
Fresh Phenom 007
(12 items)
 
 
CPUMotherboardGraphicsRAM
4790k ASUS Maximus Impact 7 GTX 470 G.Skill Trident 2400 Cas 9 
Hard DriveHard DriveCoolingOS
Plextor M5 Western Digital 2.5" D5 Custom Loop Windows 8 
MonitorKeyboardPowerCase
50" HDTV Logitech K400R Silverstone SX-600-G Bitfenix Phenom M 
  hide details  
Reply
Fresh Phenom 007
(12 items)
 
 
CPUMotherboardGraphicsRAM
4790k ASUS Maximus Impact 7 GTX 470 G.Skill Trident 2400 Cas 9 
Hard DriveHard DriveCoolingOS
Plextor M5 Western Digital 2.5" D5 Custom Loop Windows 8 
MonitorKeyboardPowerCase
50" HDTV Logitech K400R Silverstone SX-600-G Bitfenix Phenom M 
  hide details  
Reply
post #6 of 7
Quote:
Originally Posted by drnilly007 View Post

Yes Alt+F4 an old classic!

yup been using it since Win98 (I think)
LIttle Giant
(14 items)
 
 
Old HP upgraded
(13 items)
 
CPUMotherboardGraphicsGraphics
3570k Asus P8Z77-I Deluxe  AMD Radeon HD Myst 7870 Tahiti Accelero Twin Turbo II 
RAMHard DriveHard DriveMonitor
16GB Corsair 1600  Samsung 840pro Samsung 500 GB 2.5" 7200 HDD Asus VG236h 120hz  
KeyboardPowerCaseMouse
Corsair K90 Corsair 500w Bitfenix Prodigy  Logitech G9x 
Mouse PadAudio
Rocketfish Hard dual sided Creative 2.1 speakers/Razer Megalodon/Charasis  
CPUMotherboardGraphicsRAM
I5 2500k Asus P8Z68-lx XFX 685X Pny 
Hard DriveHard DriveHard DriveOptical Drive
Wd caviar black FAALS Wd caviar blue  Ocz agility 2 Ssd Asus dvd burner 
CoolingOSMonitorKeyboard
Frio Win 7 home premium Hp 2207 Logitech G11 (rev 1) 
PowerCaseMouseMouse Pad
Pc power and colling 775w Antech 900 Logitech G9x Rocketfish 
Audio
Razer megalodon 
CPUMotherboardGraphicsHard Drive
Athlon X2 4800+ ESC Nettle2 Asus 5770 wd Black 
Hard DriveOSMonitorKeyboard
SSD OCZ agility II Win 7 home Premium  Hp w2207 Logitech G11 
PowerCaseMouseMouse Pad
750w PC power and cooling Antec 900 Logitech G9 Rocket fish 
Audio
Razer Megelodon  
  hide details  
Reply
LIttle Giant
(14 items)
 
 
Old HP upgraded
(13 items)
 
CPUMotherboardGraphicsGraphics
3570k Asus P8Z77-I Deluxe  AMD Radeon HD Myst 7870 Tahiti Accelero Twin Turbo II 
RAMHard DriveHard DriveMonitor
16GB Corsair 1600  Samsung 840pro Samsung 500 GB 2.5" 7200 HDD Asus VG236h 120hz  
KeyboardPowerCaseMouse
Corsair K90 Corsair 500w Bitfenix Prodigy  Logitech G9x 
Mouse PadAudio
Rocketfish Hard dual sided Creative 2.1 speakers/Razer Megalodon/Charasis  
CPUMotherboardGraphicsRAM
I5 2500k Asus P8Z68-lx XFX 685X Pny 
Hard DriveHard DriveHard DriveOptical Drive
Wd caviar black FAALS Wd caviar blue  Ocz agility 2 Ssd Asus dvd burner 
CoolingOSMonitorKeyboard
Frio Win 7 home premium Hp 2207 Logitech G11 (rev 1) 
PowerCaseMouseMouse Pad
Pc power and colling 775w Antech 900 Logitech G9x Rocketfish 
Audio
Razer megalodon 
CPUMotherboardGraphicsHard Drive
Athlon X2 4800+ ESC Nettle2 Asus 5770 wd Black 
Hard DriveOSMonitorKeyboard
SSD OCZ agility II Win 7 home Premium  Hp w2207 Logitech G11 
PowerCaseMouseMouse Pad
750w PC power and cooling Antec 900 Logitech G9 Rocket fish 
Audio
Razer Megelodon  
  hide details  
Reply
post #7 of 7
Quote:
Originally Posted by That_guy3 View Post

NICE!!!!!! Its a shame we have to do these kind of things when MS should have done it for us. No one used the start button they claimed. GRRR

Create a .bat file? being doing that since XP... one click and go thumb.gif
Project OP
(13 items)
 
 
Compooter too
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-4690k  MSI Z97S SLI Krait Edition  Sapphire Nitro+ RX 570 Kingston HyperX 8GB(2x4) Black 
RAMHard DriveOptical DriveCooling
Kingston HyperX 8GB(2x4) White Samsung 950 Pro m.2 Lightscribe 24x DVDrw Corsair H100i v2 
OSMonitorPowerCase
Windows 10 LG 25UM57 2560 X 1080 60Hz IPS SilverStone Strider plus SST ST1000-P Corsair Carbide 400c White 
Other
Swiftech 8W-PWM 
CPUMotherboardRAMHard Drive
AMD Ryzen R7 1700x Asus x370 crosshair VI Hero G.SKILL TridentZ 16GB  Samsung 950 m.2 256GB 
Hard DriveOSPowerCase
Crucial MX300 1TB SATA 2.5 Windows 10 Home EVGA SuperNOVA 750 G2 80+ GOLD Be Quiet! Dark Base Pro 900  
  hide details  
Reply
Project OP
(13 items)
 
 
Compooter too
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-4690k  MSI Z97S SLI Krait Edition  Sapphire Nitro+ RX 570 Kingston HyperX 8GB(2x4) Black 
RAMHard DriveOptical DriveCooling
Kingston HyperX 8GB(2x4) White Samsung 950 Pro m.2 Lightscribe 24x DVDrw Corsair H100i v2 
OSMonitorPowerCase
Windows 10 LG 25UM57 2560 X 1080 60Hz IPS SilverStone Strider plus SST ST1000-P Corsair Carbide 400c White 
Other
Swiftech 8W-PWM 
CPUMotherboardRAMHard Drive
AMD Ryzen R7 1700x Asus x370 crosshair VI Hero G.SKILL TridentZ 16GB  Samsung 950 m.2 256GB 
Hard DriveOSPowerCase
Crucial MX300 1TB SATA 2.5 Windows 10 Home EVGA SuperNOVA 750 G2 80+ GOLD Be Quiet! Dark Base Pro 900  
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › 5 minute Tutorial! How to create a Shutdown and Restart button in the right-click menu. WINDOWS 8