- MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides - http://maximumpcguides.com/windows-vista -

Create Shortcuts That Lock, Restart, and Shutdown Windows Vista

Posted By Brent Trahan On September 12, 2007 @ 10:06 am In All, Customization, Vista, Windows | No Comments

Introduction

This guide shows you how to create a shortcut that’ll lock, restart, or shutdown your Windows Vista computer when double-clicked.

lock_restart_shutdown1.PNG

Create Lock, Restart, and Shutdown Shortcuts

Lock Shortcut

In this example I’m going to create a shortcut that locks your computer. Information on how to create shutdown and restart shortcuts is below.

  1. Right-click an empty space on your desktop, point at New, and then select Shortcut.
  2. Type rundll32.exe user32.dll,LockWorkStation in the location and then press Next.

    lock_restart_shutdown2.PNG [1]

  3. Type the name of the shortcut in the name box. I used Lock in this example.

    lock_restart_shutdown3.PNG [2]

  4. Click Finish to create the shortcut.

The lock shortcut should work now. Let’s pretty things up and give this shortcut an icon.

  1. Right-click the new shortcut and select Properties.
  2. Click the Change icon button.
  3. Type %SystemRoot%\system32\imageres.dll in the Look for icons in this file box and press enter on your keyboard.
  4. Select the icon you want to use and then click OK.

    lock_restart_shutdown4.PNG [3]

  5. Type something like Lock Computer in the Comment box in the shortcut properties window.

    lock_restart_shutdown5.PNG [4]

    This text will appear when you hover over the shortcut with your mouse.

  6. Click OK to save your changes.

Restart Shortcut

Follow the steps above but type shutdown.exe /r /t 01 in the location box.

Shutdown Shortcut

Follow the steps above but type shutdown.exe /s /t 01 in the location box.


Article printed from MAXIMUMpcguides – Windows Vista tips, tricks, help, and how-to guides: http://maximumpcguides.com/windows-vista

URL to article: http://maximumpcguides.com/windows-vista/create-shortcuts-that-lock-restart-and-shutdown-windows-vista/

URLs in this post:

[1] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/lock_restart_shutdown2.PNG

[2] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/lock_restart_shutdown3.PNG

[3] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/lock_restart_shutdown4.PNG

[4] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/lock_restart_shutdown5.PNG

Copyright © 2008 MAXIMUMpcguides Windows Vista. All rights reserved.