×

注意!页面内容来自https://helpdeskgeek.com/how-to-quickly-lock-your-windows-11-10-pc/,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

How to Quickly Lock Your Windows 11/10 PC

5 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Your privacy matters. That’s why it’s good practice to lock a desktop or laptop whenever you leave it unattended. Use any of the methods below to stop other people from snooping around your PC.

Unlike signing outlocking a computer is fasterjust as secureand doesn’t require you to shut down open programs. You also get to unlock it instantly and pick up where you left off. This article will go through various ways to quickly lock Windows 11 and 10.

Lock Computer via the Start Menu

The most straightforward approach to locking your PC is simply to use the Start menu. Open itselect the User icon or your profile portraitand choose the option labeled Lock.

Note: If the Lock option is not presentopen the Control Panelgo to Hardware and Sound > Power Options > Change what the power buttons doand activate the box next to Lock to add it.

Lock Computer with a Keyboard Shortcut

If you prefer keyboard shortcutsan even faster way to lock a Windows computer is pressing Windows Key + L. Use it a few timesand you’ll get it hard-coded into your muscle memory.

Lock Computer with a Desktop Shortcut

If you find it challenging to use the Win + L keyboard shortcutyou can create a desktop shortcut capable of locking your PC just as quickly.

  1. Right-click a vacant area within the desktop area.
  2. Select New > Shortcut on the context menu.
  3. Copy and paste the following snippet of text into the Create Shortcut window and select Next:

rundll32.exe user32.dll,LockWorkStation

  1. Type a name for the shortcut—e.g.“Lock PC”—and select Finish.
  2. Double-click the shortcut whenever you want to lock your PC.

Lock PC via the Windows Security Screen

The Windows Security screen (a.k.a. the Ctrl + Alt + Delete screen) offers another quick way to lock Microsoft Windows. The best thing about this method is that you can use it even if Windows 11 or 10 isn’t responsive. Press Ctrl + Alt + Del to get the Windows Security screen to show up. Thenselect Lock.

Lock Computer via Task Manager

If you ever find yourself using the Task Manager in Windows 11 or 10 and want to lock down your PC immediatelyyou can do that using the Task Manager itself.

  1. Right-click the Start button and select Task Manager.
  2. Select More details to expand the default Task Manager view.
  3. Switch to the Users tab.
  4. Select your Windows user account.
  5. Select the Disconnect option at the lower-right corner of the window.

Lock Computer Alongside Screen Saver

If you regularly forget to lock your PCyou can set up a screensaver to kick in automatically and lock your PC when it engages.

  1. Open the Start menusearch for screen saverand select Turn Screen Saver On or Off to invoke the Screen Saver Settings pop-up.
  2. Open the drop-down menu under Screen saver and pick a screensaver (select Blank if you prefer to keep the computer screen dark when the screensaver is active).
  3. Specify a time in minutes within the Wait boxcheck the box next to On resumedisplay logon screenand select OK.

Your PC will display the screensaver when left idle for the time duration. Press a key or mouse button whenever you want to exit it and get to the Lock Screen.

Lock Computer With Dynamic Lock

Dynamic Lock automatically locks the operating system if it detects a weak Bluetooth signal between your PC and another device. Although it works with any Bluetooth peripheralusing a smartphone (Android or iPhone) is the most practical.

Connect Smartphone to PC

Before activating Dynamic Lockyou must pair your smartphone with your computer.

  1. Put your phone into Bluetooth discovery mode. That’s as simple as visiting its Bluetooth options screen (e.g.Settings > Bluetooth on the iPhone).
  2. Open the Settings app on your PC (press Windows + I).
  3. Select Devices > Bluetooth & other devices.
  4. Select Add Bluetooth or other device > Bluetooth.
  5. Select your phone and go through the onscreen instructions to pair it.

Activate Dynamic Lock

It’s now just a matter of activating Dynamic Lock.

  1. Open the Settings app on your PC.
  2. Select Accounts > Sign-in Options and scroll down to the Dynamic Lock section.
  3. Check the box next to Allow Windows to automatically lock your device when you’re away.

Your PC will automatically lock itself whenever you move away from it with your iPhone or Android smartphone.

Lock Computer via Run Command

You can perform many valuable activities with Run commands in Windowsincluding locking your PC. Although it’s hard to justify using Run over the above methodsit’s good to know that this way exists.

  1. Press Windows Key + R or right-click the Start button and select Run.
  2. Type the following command into the Run dialog box:

rundll32.exe user32.dll,LockWorkStation

  1. Select OK, or press Enter to lock Windows.

Lock Computer via Windows Terminal

Another obscure way to lock a Windows 11/10 PC requires running a command through the Windows Terminal or Windows PowerShell consoles. Here’s how to use it:

  1. Right-click the Start button and select Windows Terminal (Windows 11) or Windows PowerShell (Windows 10).
  2. Type the following command:

rundll32.exe user32.dll,LockWorkStation

  1. Press Enter.

Tip: The above command also works on the older Command Prompt console. Open the Start menutype cmdand select Open to get to it.

While this command is not particularly useful for locking your PC in the momentit can be handy to include the command in a script so that your PC locks when the script finishes.

Total Lockdown

Locking your Windows PC has no downsides and keeps intruders at bay. It’s easy to forget to do thathoweverso it’s always worth taking your time to tweak your screensaver settings or set up Dynamic Lock. While you’re at itcheck out how to create a passwordless login in Windows to make getting back in even faster.

<> .center-modal-popup { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 99999; background: rgba(0,0,0,0.5); } .center-modal-box { width: 500px; max-width: 96%; border-radius: 10px; padding: 36px; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,0.5); transform: scale(0.98); opacity: 0; transition: opacity 0.35s easetransform 0.35s ease; } .center-modal-popup.show .center-modal-box { opacity: 1; transform: scale(1); } .modal-close { position: absolute; top: 18px; right: 22px; background: transparent; border: none; font-size: 28px; color: #fff; cursor: pointer; } .modal-inner h2 { text-align:center; font-size:22px; margin:4px 0 12px; } .modal-desc { text-align:center; max-width:620px; margin:0 auto 18px; font-size:15px; } /* Logo */ .center-modal-logo { display: block; margin: 0 auto 12px; height: auto; } .modal-form { display:flex; flex-direction:column; width:100%; align-items:center; } /* Input row: full-width centered box */ .modal-input-row { display:block; width:100%; max-width:720px; margin:0 auto 12px; } .modal-input-row input { width:100% !important; padding:14px 20px !important; border-radius:30px !important; border:none !important; font-size:15px !important; box-sizing:border-box !important; background:#fff !important; color:#333 !important; outline:none !important; box-shadow:none !important; -webkit-appearance:none !important; -moz-appearance:none !important; appearance:none !important; } .modal-input-row input::placeholder { color:#999 !important; } .modal-input-row input:focus { outline:none !important; box-shadow:none !important; border:none !important; } .modal-input-row input:-webkit-autofill, .modal-input-row input:-webkit-autofill:hover, .modal-input-row input:-webkit-autofill:focus { -webkit-box-shadow:0 0 0 1000px #fff inset !important; -webkit-text-fill-color:#333 !important; } /* Submit row: button same max-width as inputcentered */ .modal-submit-row { display:flex; justify-content:center; width:100%; } .modal-submit { display:block; width:100%; max-width:720px; padding:14px 22px; border-radius:30px; border:none; color:#fff; font-weight:700; cursor:pointer; box-sizing:border-box; text-align:center; } .modal-error { color:#fff; font-size:14px; text-align:center; margin:8px 0 12px 0; padding:12px 16px; background:#e74c3c; border-radius:6px; font-weight:500; } .modal-terms { text-align:center; width:100%; max-width:720px; line-height:1.4; margin:14px 0 0 0 !important; font-size:13px; } @media(max-width:720px) { .center-modal-box { padding:24px 18px; width:100%; } .modal-inner h2 { font-size:18px; margin:0 0 10px; } .modal-desc { font-size:14px; margin:0 0 16px; } .center-modal-logo { transform: scale(0.75); margin-bottom:10px; } .modal-input-row { margin-bottom:12px; max-width:100%; } .modal-input-row input { width:100%; max-width:100%; } .modal-submit { width:100%; max-width:100%; } .modal-terms { font-size:12px; max-width:100%; } }