Since 2010 · Windows 11 · 10 · 8 · 7

Welcome to TheWindowsForum

Over 15 years of helping Windows users worldwide. Ask questions, share tips, download resources and connect with the community — free and always friendly.

SignUp Free Already a member? Log in
  • Post & reply in threads
  • Private messages
  • Exclusive guides & downloads
  • NO ADS for registered users

Create Shutdown / Restart / Lock Icons in Windows 7 or Vista

Joined
Sep 13, 2010
Messages
134
If you dislike the new Windows Vista shutdown menu, you are probably in the majority. An alternative option is to create icons that will let you shut down, lock, or restart your computer without having to mess with that stupid popup menu.

Of course, Windows 7 makes the shutdown menu a lot better, but if you want a shortcut elsewhere or to assign a hotkey, this should help you out.

*First right-click on the desktop, choose New and then Shortcut.
photo-31103.jpg

*In the shortcut location box, you’ll need to enter the correct command, which I’ve listed for you below.
photo-31104.jpg


Shutdown Computer
Code:
Shutdown.exe -s -t 00

Restart Computer
Code:
Shutdown.exe -r -t 00

Lock Workstation
Code:
Rundll32.exe User32.dll,LockWorkStation

Hibernate Computer
Code:
rundll32.exe PowrProf.dll,SetSuspendState

Sleep Computer
Code:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

When you’ve clicked next on the above dialog, you’ll be asked to name the shortcut. Probably best to name it according to the right function.
photo-31105.jpg

After you click Finish, you should now have a new icon that you can double-click to immediately shutdown, restart, or lock your computer.

75288565076641740115.png
 

Support TheWindowsForum

Help us stay ad-free and keep the community running

Donate Now

Trending content

Back
Top