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.
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.
- Right-click an empty space on your desktop, point at New, and then select Shortcut.
- Type rundll32.exe user32.dll,LockWorkStation in the location and then press Next.
- Type the name of the shortcut in the name box. I used Lock in this example.
- Click Finish to create the shortcut.
The lock shortcut should work now. Let’s pretty things up and give this shortcut an icon.
- Right-click the new shortcut and select Properties.
- Click the Change icon button.
- Type %SystemRoot%\system32\imageres.dll in the Look for icons in this file box and press enter on your keyboard.
- Select the icon you want to use and then click OK.
- Type something like Lock Computer in the Comment box in the shortcut properties window.
This text will appear when you hover over the shortcut with your mouse.
- 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.
Thank you, really helped me