sodcalculator

10 Tech How-To

How to Remotely Lock Your Windows 10 PC

Guide 10-32975 · Updated · Step by step

This guide shows you how to lock your Windows 10 computer from another device, such as a phone or another PC. This is useful if you step away and forget to lock it, or if you suspect someone is using it without permission. You’ll need a Microsoft account signed in on the target PC and either the Microsoft account website or the Microsoft Remote Desktop app on your other device.

What You’ll Need

  • A Windows 10 PC signed in with a Microsoft account (not a local account).
  • Another device (phone, tablet, or another computer) with internet access.
  • Your Microsoft account email and password (and any two-factor verification method you use).
  • For the Remote Desktop method: the Microsoft Remote Desktop app installed on the device you’re connecting from.

Step-by-Step

There are two reliable ways to remotely lock your PC. The first uses the Microsoft account website and works from any browser. The second uses the Remote Desktop app, which also lets you see and control the screen.

Method 1: Using the Microsoft Account Website

  1. On your phone, tablet, or another computer, open a web browser and go to account.microsoft.com/devices.
  2. Sign in with the Microsoft account that is signed in on the PC you want to lock. If you have two-step verification enabled, complete that prompt as well.
  3. You’ll see a list of devices associated with your account. Find the Windows 10 PC you want to lock and click Show details (or tap the device name).
  4. In the device details page, look for the Find my device section. If it says “Off,” you’ll need to turn it on first by clicking Turn on. This feature must be enabled for remote locking to work.
  5. Once Find my device is on, click Lock (or “Lock this device”).
  6. A confirmation prompt will appear. Click Lock again to confirm.
  7. Your PC will lock as soon as it connects to the internet. You’ll see a confirmation message on the website. The PC will show the lock screen, and anyone using it will need your password or PIN to get back in.

Method 2: Using the Remote Desktop App

  1. On your phone or another PC, install the Microsoft Remote Desktop app from the official app store (Microsoft Store, Google Play, or Apple App Store).
  2. Open the app. You’ll need to add your PC as a connection. Tap the + icon (or “Add”) and choose PC (or “Desktop”).
  3. Enter your PC’s name or IP address. To find this on the target PC: go to Settings > System > About and look under “Device name,” or open Command Prompt and type ipconfig to find the IPv4 address. For remote access over the internet, you’ll need your public IP or a configured dynamic DNS name.
  4. After adding the PC, tap it to connect. You’ll be prompted for credentials. Enter your Microsoft account email and password (or the local username/password if you set that up).
  5. Once connected, you’ll see the desktop of your PC on your device. To lock it, press Ctrl + Alt + End on your device’s keyboard (this sends the Ctrl+Alt+Del command to the remote PC).
  6. In the menu that appears on the remote screen, click Lock. The remote PC will lock, and your Remote Desktop session will disconnect.

Common Mistakes

  • Using a local account: The website method only works with a Microsoft account. If your PC uses a local account, you’ll need to switch it to a Microsoft account in Settings > Accounts > Your info.
  • Find my device is off: The website method requires “Find my device” to be enabled on the PC. If it’s off, the Lock button won’t appear or won’t work.
  • PC is offline: Neither method works if the target PC is completely powered off or has no internet connection. The lock command will be queued and applied the next time it comes online.
  • Wrong Microsoft account: Make sure you’re signed in on the website with the exact same Microsoft account that’s on the PC. If you have multiple accounts, check the device list carefully.
  • Confusing lock with sign out: Locking just shows the lock screen; it doesn’t close your apps or sign you out. That’s fine for most security purposes.

Tips

  • Enable Find my device now: Don’t wait until you need it. Go to Settings > Update & Security > Find my device and turn it on before an emergency.
  • Set up Remote Desktop in advance: On the target PC, go to Settings > System > Remote Desktop and toggle it on. This makes the Remote Desktop method much easier later.
  • Use a strong password/PIN: Locking is only useful if the password or PIN isn’t easy to guess. Consider using Windows Hello facial recognition or a fingerprint for faster, secure unlocking.
  • Test it once: Try locking your PC remotely while you’re sitting next to it, just to confirm the setup works before you rely on it.
  • Consider a dynamic DNS service: If your home IP changes often, a dynamic DNS name (like yourname.ddns.net) makes Remote Desktop connections more reliable.

Troubleshooting

  • “Lock” button is grayed out or missing: This almost always means Find my device is off. You cannot turn it on remotely from the website; you must be physically at the PC to enable it in Settings.
  • PC doesn’t lock after confirming: Wait a few minutes. The command only works when the PC is online. If it still doesn’t lock after 10-15 minutes, check that the PC is actually connected to the internet and not in sleep mode. You can also try refreshing the device page on the website.
  • Remote Desktop connection fails: Ensure Remote Desktop is enabled on the target PC, you’re on the same network (for local testing), or port 3389 is forwarded on your router (for internet access). Also check that your antivirus or firewall isn’t blocking it.
  • Can’t sign in to the website: If you’ve forgotten your password, use the “Forgot password” link on the sign-in page. If you have two-factor authentication, make sure you have access to your recovery method.
  • Remote Desktop shows a black screen: This can happen if the remote PC is on the lock screen. Try pressing Ctrl+Alt+End again, or wait a moment. If it persists, disconnect and reconnect.
  • Device not listed on the website: Go to Settings > Accounts > Your info on the PC and confirm it shows “Microsoft account” rather than “Local account.” If it’s local, sign in with your Microsoft account there.

Frequently Asked Questions

Does locking my PC remotely sign me out of apps?

No. Locking just shows the lock screen. All your open apps and files remain running in the background. This is the same as pressing Windows + L on the keyboard.

Can I unlock my PC remotely?

No, not through these methods. Unlocking always requires entering your password or PIN physically on the PC. Remote Desktop can reconnect you after you’ve unlocked it locally, but it cannot bypass the lock screen.

Will this work if my PC is in sleep mode?

No. If the PC is asleep, it can’t receive the lock command. The command will be applied when the PC wakes up and connects to the internet. You can’t wake a PC remotely with these methods.

Is there a way to lock my PC from my phone without an app?

Yes, use the website method (Method 1). Just open a browser on your phone, go to account.microsoft.com/devices, and follow the steps. No app installation is needed.

What if I don’t have a Microsoft account on my PC?

Then the website method won’t work. You can either switch to a Microsoft account in Settings > Accounts, or use the Remote Desktop method with a local username and password. For Remote Desktop, you’ll need to set a password for your local account first.

Can I lock someone else’s PC if I know their Microsoft password?

If you have their Microsoft account credentials and Find my device is enabled, technically yes. However, this should only be done with the owner’s explicit permission. Using someone else’s account without consent may violate terms of service and local laws.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →