Create Shortcuts That Lock, Restart, and Shutdown Windows Vista

Posted on: 09.12.07 by Brent Trahan

How-to create a shortcut that locks, restarts, or shutdowns Windows Vista.

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

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

    lock_restart_shutdown3.PNG

  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

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

    lock_restart_shutdown5.PNG

    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.

Still need help? Ask Your Computer Question Now.

Leave a Reply

No Support Questions If you have a support question please ask it in the forum.