How to Add “Lock Workstation” Command to the Windows XP Start menu

To lock a Windows 2000/XP/Vista workstation, most people use the popular WinKey + L keystroke. Whereas some (mouse users) prefer a shortcut that locks the workstation using the “rundll32.exe user32.dll, LockWorkStation” command.

Using the registry hack in this article, you can add the Lock Workstation command to the Windows XP Start menu, just below the Run command.

This hack uses the slot which is reserved for PC manufacturers to add their link. Here is the registry location for the Start menu OEM Link:


(REF: How To Remove OEM link from the Windows XP Start menu?)

Add “Lock Workstation” to Windows XP Start menu

Download and save to Desktop. Unzip the file and double-click add-lock-startmenu-xp.reg to run it. Log off and login back to your user account. You should see the Lock Workstation command in the Start menu, which runs the following command when clicked:

rundll32.exe user32.dll, LockWorkStation

Note that Windows Vista includes the Lock button in the Start menu by default.

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.