| Tweet |
Windows 8 Beta aka Consumer Preview has lots of hidden possibilities in it. We’re regularly posting on them since its release. As we all know that Windows 8 Beta doesn’t have direct shut down, lock computer, restart options due to absence of Start Menu and Start Button. Most of users are not adopted till now for these changes.

So today in this article, I’m going to share you the way to add such power options to Desktop context menu using Registry’s manual method. After adding such power options, you can easily preform power operations in a handy way on Windows 8. So here we go:
1. Open the Registry Editor using Windows Key + R combination followed by regedit command. Navigate here:
HKEY_CLASSES_ROOT\DesktopBackground\Shell

In left pane, right click on Shell and pick New - > Key. Name the key like Shut Down, Restart etc. Let us assume we name the key as Lock Computer.
2. For previously created Lock Computer key, create two strings in right pane with name icon and Position.

Now right click on icon, select Edit String. Put following Value data for corresponding operations:
For Lock Computer – shell32.dll,-48
For Shut Down - shell32.dll,-28
For Restart – shell32.dll,-290
For Sign Out – shell32.dll,-45

Similarly put Value data Bottom for Position.
3. Now create the sub key under previously created key in step 1 using same procedure. Name this sub key as command.

Click over this sub key, you’ll find Default string in right pane. Right click on it and pick Modify and enter following Value data:
For Lock Computer - rundll32.exe user32.dll,LockWorkStation
For Shut Down – shutdown.exe -s -t 00 -f
For Restart – shutdown.exe -r -t 00 -f
For Sign Out – shutdown.exe -L

That’s it! Exit the Registry Editor, press Windows Key + D to access Desktop. Right click to get results (shown in first image of this post).
How to change default icons?
The above method implements default icons with options. However you can assign different icons using following method:
1. Download IconViewer using below link and install it:
2. Access here:
C:\Windows\System32\shell32.dll

Now right click on it and pick Properties. In Properties window, switch to Icons tab. Note your favorite icon number after #.
Use this icon number in step 2 of main tutorial (after shell32.dll,-).
Download Direct Registries
For the sake of simplicity and save your time, we’ve created direct registry scripts which will do the same work in seconds. You just need to download and run them. Here are the links:
Download Registry For Lock Computer
Click on above downloaded file and run it. You’ll get following prompt:

Press Yes then you’ll get this:

In this way you’ve successfully added your desired power option to context menu.
Hope you guys like the tutorial….. :)
This article was posted in "How To, Troubleshooting, Windows 8'' section by Kapil Arya.
If you enjoyed this article, subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. If you have a Windows, technology article to share, then feel free to send us.
Mike
great Kapil; its a very good read here :D :)
PojoWER
I guess this works on Windows 7 as well ?!
Anyway nice article man!
kizo124
me added the options…. yippiee!!!
Luckett
thanks dude! its gr8…………..
ODIO
thankxxxxx
sd43ru3
works on 7 :)
andre
nice :)
lee
gud article kapil
Exaltación Brito Reynoso
I always appreciate a great article or piece of writing. Thanks for the contribution.
sesli sohbet
Heya i’m for the first time here. I found this board and I to find It truly useful & it helped me out a lot. I’m hoping to offer one thing back and aid others like you helped me