Monday, November 19, 2012

Right Click for power options on Windows 8


This post will show you how to Lock, Restart, Shutdown and Sleep just by right clicking on any space. This can be done apart from the various other ways to get to the power options on Windows 8; Alt+F4, Win+I or the Charms. Steps below: 

Open notepad and paste the code given below in it. 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer]
"icon"="shell32.dll,-325"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer]
"icon"="shell32.dll,-331"
"Position"="Bottom"

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

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer]
"icon"="shell32.dll,-329"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer\command]
@="Rundll32 User32.dll,LockWorkStation"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer\command]
@="rundll32.exe powrprof.dll,SetSuspendState 0,1,0"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer\command]
@="shutdown.exe -r -t 00 -f"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer\command]
@="shutdown.exe -s -t 00 -f"

Save the file with any name and add a " .reg " extension to it. Save it anywhere you want to.

Open the registry file by double-clicking on it and add it to the registry by providing "Yes" in the dialog box that will appear.

To remove it, follow the exact same steps as above but replace the code to that of which is given below: 

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer]
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer]
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer]
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer]



Thanks to Rohit's Tech World. 

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.