To lock a Windows 2000/XP/Vista workstation, most people use the popular WinKey + L keystroke. Whereas some (mouse users) prefer a shortcut which 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 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 add_lock_startmenu_xp.zip and save to Desktop. Unzip the file and double-click add-lock-startmenu-xp.reg to run it. Logoff 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:

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

Related Posts
- How to Automatically Login to Windows and Then Lock the Workstation
- Add Enhanced Shutdown Button to the Windows XP Start Menu
- Why Is There a Lock (Padlock) Icon on Some Files and Folders in Windows 7?
- Show Internet Explorer 8 Favorites Bar as Cascading Menu to Gain More Screen Space
- How to Restore the Quick Launch Toolbar, Show Desktop and the Flip 3D Icons in Windows 7
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?





This is cool! I’ve been using this same trick for years to add a command prompt to the Start Menu!
Thanks for this lovely info. I managed to add “Hibernate” command to the Windows XP Start Menu using this same logic with some twist.
Thank you.