To: PMS Witch who wrote (85238 ) 5/10/2014 11:31:59 AM From: PMS Witch Respond to of 110653 Shutdown Menu -- another approach. . . I don't use Shortcuts for Shutdown. I find the DeskTop Context Menu method more convenient. When I want to Shutdown, Sleep, or Log Off etc. I simply Right-Click on the DeskTop and select what I want to do. To implement this, one must add some data to the Windows Registry. The easiest, and perhaps safest, way of doing this is by Importing a text file of the keys you wish to add. Start by using Cut and Paste with NotePad to put the following into a plain text file. ;================================================================================== Windows Registry Editor Version 5.00 ; Add Power Menu options to Desktop Context Menu ; Note: Hibernate option disabled for Windows 7 running from a .VHD [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu] "MUIVerb"="Power Menu" ;"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown" "SubCommands"="lock;logoff;switch;sleep;restart;shutdown" "Icon"="shell32.dll,215" "Position"="bottom" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock] @="Lock" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command] @="Rundll32 User32.dll,LockWorkStation" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff] @="Log Off" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command] @="Shutdown -l" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch] @="Switch User" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command] @="tsdiscon.exe" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep] @="Sleep" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command] @="rundll32.exe powrprof.dll,SetSuspendState Sleep" ;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate] ;@="Hibernate" ;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command] ;@="Shutdown -h" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart] @="Restart" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command] @="Shutdown -r -f -t 00" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown] @="Shut Down" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command] @="Shutdown -s -f -t 00" ; Remove Power Menu options to Desktop Context Menu ;[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart] ;[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown] ; ;=================================================================================== Note: I've included the instructions to remove the Power option from the Context Menu, but used semi-colons to turn them into comments. To reverse the work this file does, make the instructions into comments and the comments into instructions. Save this file as PowerMenu.TXT. The next step is to Import it into your Registry. Right-Click the Command Prompt shortcut and select Run as Administrator. (One cannot Import Sub-Keys to HKEY_LOCAL_MACHINE from User Accounts; hence, Run as Administrator is needed.) In the Command Prompt window that opens, enter this command: Reg Import PowerMenu.TXT You may need to Re-Start your system before these new Registry keys work. Cheers, PW P.S. This works for Windows 8 DeskTop as well. P.P.S. As well, one can save the file as PowerMenu.REG With .REG files, one can Click on them to add them to the Registry. (Or Right-Click and select Merge) I prefer to Import .TXT files for two reasons: I can read any Error Messages easier, and I don't have a collection of .REG files on my system patiently waiting for me to click on them accidentally. P.P.P.S. When making changes using RegEdit, any work you do takes place immediately, often without feedback, and never with a Confirmation request asking you if you're sure. This makes this work profoundly error prone. By putting the work you wish to do into files, you can double check what you're about to do before you proceed, and if you do something you didn't intend, you can alter the file and correct your mistake easily.