How can I add an icon to Windows XP's or Windows 2000's Quick Launch bar to lock my workstation?

A. In a previous FAQ, I explained how to lock a computer by typing the following command at a command prompt:

 rundll32.exe user32.dll,LockWorkStation 

You can create a shortcut on the Quick Launch bar to execute this command by performing the following steps:

  1. Start Windows Explorer.
  2. Navigate to \%userprofile%\application data\microsoft\internet explorer\quick launch (e.g., C:\documents and settings\john\application data\microsoft\internet explorer\quick launch).
  3. Right-click in the right-hand pane and select New, Shortcut.
  4. Enter "rundll32.exe user32.dll,LockWorkStation" without the quotes and click Next.
  5. Name the shortcut "Lock Workstation" and click Finish.

Click here to view image

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.