Google-Translate-Swedish Google-Translate-English to French Google-Translate-English to German Google-Translate-English to Italian Google-Translate-English to Dutch Google-Translate-English to Portuguese Google-Translate-English to Russian BETA Google-Translate-English to Spanish
 
 
Windows 7 - How to Create Shortcuts for Shut Down, Restart and Lock Computer


How to Create Shortcuts for Shut Down, Restart and Lock Computer

If you are the type of Windows user who prefers to use the desktop more than the start menu, then you may be interested in having icons on your desktop which, when double-clicked, either restart, lock or shut down your computer. How to create such shortcuts is not obvious, but following the steps below will teach you how to make them in just a matter of minutes.

Right-click anywhere on your desktop and go to the "New" menu. Click "Shortcut" near the top of the menu. The "Create Shortcut" window will appear. In the box, type either of the following:
Shutdown.exe -s -t 00 (Shuts down computer)
Shutdown.exe -r -t 00 (Restarts computer)
Rundll32.exe User32.dll,LockWorkStation (Locks computer to the login screen)
rundll32.exe PowrProf.dll,SetSuspendState (Hibernates computer)
rundll32.exe powrprof.dll,SetSuspendState 0,1,0 (Puts computer into "Sleep" mode)

Click "Next" and enter a name for the shortcut, depending on what it does. Repeat the same process for each of the commands listed above as required.

Finally, you'll probably want to have more suitable icons for your new shortcuts. To select a new icon for a shortcut, right-click on it and go to "Properties" to bring up the properties window for that shortcut. Click "Change Icon." You'll get the default list of icons contained in "%SystemRoot%\system32\SHELL32.dll."

You can either choose a suitable icon from the default list, or you can download one off the Internet and choose that instead. Click the "Browse" button to look elsewhere. Note that many executable files and some DLL files contain one or more icons which you can also choose. Repeat the process to change the icon for any other shortcuts you created.

 

Microsoft Windows is a registered trademark of Microsoft Corporation in the United States and other countries. Speed improvements vary based on your system configuration. ErrorTeck is not endorsed or affiliated with either Microsoft or the third party applications it supports.