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

Create a desktop shortcut to lock your workstation

Dec 14, 2010·Dustin

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
USB to SATA AdapterShop on Amazon
DDR3 RAMShop on Amazon
External HDDShop on Amazon
USB Flash DriveShop 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
Dustin

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.

Related Articles

Windows 11

Add “End Task” To Right Click Application on Taskbar

Sep 16, 2025·Dustin
Windows 10

Offline install of .Net Framework 3.5 using DISM

Apr 1, 2020·Dustin
Windows 10

Disable Autohide Scrollbars

Jul 8, 2019·Dustin

Windows Insider Builds

Canary
29558.1
Dev
26300.8142
Beta
26220.8138
Release Preview
26100.8106
Recent Knowledge Base Articles
  • 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
  • Open a Command Prompt/Powershell Prompt at Folder Location
MSTechpages

Your source for Windows news, tutorials, and Insider builds.

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