Wednesday, August 31, 2011

Add right-click context menu entry to shutdownyour pc from desktop


Here is simple tutorial for adding Shutdown option in right click option.:D
Your right click option menu looks like this..
Steps 1:
– First open the registry editor :
-if you don’t know how to open registry Editor Just follow the simple steps:
  • Click on Start Menu than open Run [Start Menu ---> Run]
  • Now type regedit ,click on Ok
Now You should see the window like below :D
You should see the following main keys

Steps 2:
– Expand the key, HKEY_CLASSES_ROOT , Now Search for “Desktop” : Expand the key showed below (shell)

Steps 3:
– Expand Shell, and notice few desktop context menu entries.
Right click on Shell, and select NEW->Key
Steps 4:
– Name the key as “Shut Down”
Steps 5:
– Expand newly created key “Shut Down” and create one more key under “Shut Down” , name this key as “command”
Steps 6:
– Double click on command key, on the right panel, you will see “Default” value for this key, Double click on “Default“.
Steps 7:
– Change the value to “shutdown -p” as shown in the above picture, and click on OK.


Step 8:
– Close the registry editor.
Now , right click on the desktop, you should see the option for shut down, click the option to shutdown the system.
Note:
Editing registry entries can be risky, follow the mentioned steps properly , else, if you get confused in between, revert the changes and close the registry editor