MSTechpages
  • Home
  • Knowledge Base
  • Reviews
  • Articles
  • About
Windows 7

Create a desktop shortcut to lock your workstation

Dec 14, 2010·Dustin·Comments (1)

Estimated Reading Time: 1 min

Some may know about the Windows Key + L to lock your workstation, others may not. To keep your PC secure, it is a good idea to lock it when you are away from your desk. Many times, you just want a simple click to lock your PC. Here is how.

1. Right click the desktop and select New and Shortcut.

2. Type C:WindowsSystem32rundll32.exe user32.dll, LockWorkStation in the box.

3. You can name it anything you would like.

And that is it! You now have an icon on your desktop to lock your workstation! You can also change the icon to whatever you’d like using this knowledge base entry.

Related Products on Amazon
Wireless KeyboardShop on Amazon
Ergonomic MouseShop on Amazon
Laptop StandShop on Amazon
Desk MatShop on Amazon

MSTechPages is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. As an Amazon Associate, we earn from qualifying purchases at no extra cost to you.

#Lock #Shortcut #workstation
Written by
Dustin · Founder and Head Editor, News Poster
Sr. Cybersecurity Engineer - Microsoft MVP Windows Experience (2014-2015)

Dustin is the founder and head editor of MSTechpages. He started the site to help other users of Windows. He has been very active with helping others throughout the years, from USENET to Microsoft Answers to the latest Microsoft Communities as well as other internet forums such as Reddit. He is a Sr. System Administrator, holds several industry certifications and degrees.

View all 1500 articles by Dustin →

Related Articles

Windows 7

Assign Keyboard Shortcut To Any Application

Dec 13, 2010 · Dustin
Windows 7

Change Default Icons of A Shortcut

Oct 17, 2010 · Dustin
Windows 7

Add a Shortcut to Troubleshooting and System Maintenance Wizard

Oct 17, 2010 · Dustin

Windows Insider Builds

Beta
26320.10003
Experimental
26340.10013
Beta (26H1)
28020.3532
Experimental (26H1)
28120.3542
Experimental (Future)
29708.1003
Release Preview (25H2/26H2)
26200.10066
Release Preview (26H1)
28000.3612
Recent Knowledge Base Articles
  • Disable Touch Screen in Windows
  • Add “End Task” To Right Click Application on Taskbar
  • Offline install of .Net Framework 3.5 using DISM
  • Disable Autohide Scrollbars
  • Install Active Directory RSAT in Windows 10 1809 or later
  • Disable File Grouping in File Explorer
  • Forget Wireless Networks
  • Show Hidden Files & Folders
  • Enable Night Light Mode
  • How to Fix a Network Printer Showing Offline
MSTechpages

Covering Microsoft since the dial-up days, using Windows since 2.0.

Windows

  • Windows 11
  • Windows Insider
  • Canary Channel
  • Cumulative Updates

Resources

  • Knowledge Base
  • Articles
  • Reviews

Company

  • About
  • Contact
  • Privacy Policy
  • Advertise

© 2026 MSTechpages. All rights reserved.

Privacy