trio.so
How-Tos

Lock Windows PC Remotely: All Methods Explained

Six ways to lock a Windows PC remotely, why Intune Remote lock is greyed out for Windows, and what to do instead when a company laptop goes missing.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

You can lock a Windows PC remotely with Find my device at account.microsoft.com/devices, if the PC is signed in with a Microsoft account and Find my device was turned on beforehand. For company PCs there is a catch: Microsoft Intune's Remote lock action supports Android, iPhone, iPad and Mac but not Windows, which is why the button is greyed out for Windows devices. On Windows you use other tools instead: disconnect the user's session from the network, push a script through your MDM, force BitLocker recovery for a laptop that must not be used again, or wipe it. Whichever you use, the PC has to be online to receive it, and BitLocker encryption is what protects the data while it is not.

If a company laptop just went missing or someone left with one, find your situation in the six methods below; if you are planning ahead, the policies section covers what to set up now.

TL;DR

  • Find my device locks a PC signed in with a Microsoft account, if it was turned on beforehand and the PC is online.
  • Intune's Remote lock does not support Windows PCs. The button is greyed out for them by design, not because of a permissions problem.
  • On the company network or VPN, an admin can disconnect the user's session remotely, which returns the PC to the lock screen.
  • For a laptop that must not be used again, forcing BitLocker recovery makes it need the 48-digit recovery key that only IT holds.
  • A screen inactivity lock set by policy is the baseline that works without anyone noticing a problem.
  • Remote commands only reach PCs that are online. BitLocker encryption protects the data on a PC that never reconnects.

What "Remotely Locking a PC" Actually Means (and What It Doesn't)

If you already know the difference between a lock, a wipe and disabling an account, skip to the methods.

Locking a PC remotely sends it back to the lock or sign-in screen, so someone has to enter the password or PIN to continue. It does not shut the PC down, erase it or disable the account. Those are different actions:

  • Screen lock: the session stays, but a password or PIN is needed to use it. Without disk encryption, someone with the hardware can still read the drive.
  • Remote wipe: the PC is reset and its data erased. It cannot be undone, so it is rarely the first step.
  • Account disable: the user cannot sign in again, but a session already open may keep working until it is locked or signed out.

Every method below needs the PC to be on and reachable. If it is off or offline, the command waits or never arrives. BitLocker full-disk encryption is what protects the data in that time, so lock and encryption belong together.

6 Ways to Lock a Windows PC Remotely, Matched to Your Scenario

Three questions decide the method: is the PC signed in with a Microsoft account, is it on your network or VPN, and is it enrolled in an MDM? Pick the method that matches; you do not need all six.

Method 1: Windows Find My Device (Microsoft Account)

The fastest option for a PC signed in with a Microsoft account and connected to the internet.

Setup (before anything goes missing):

  • Windows 11: Settings > Privacy & security > Find my device, turned on.
  • Windows 10: Settings > Update & Security > Find my device, turned on.

To lock it:

  1. Go to account.microsoft.com/devices and sign in.
  2. Select the PC, choose Find my device, then Lock, and follow the prompts.

Limits: it needs a Microsoft account that is an administrator on the PC, it must be turned on before the loss, and location services must be on. It does not work for local or domain-only accounts, and many company setups leave it off.

Method 2: Phone Link / Link to Windows (Android App)

Since December 2025, Microsoft's Link to Windows app for Android can lock a paired Windows 11 PC.

  1. On the PC: Settings > Bluetooth & devices > Mobile devices, and turn on remote PC controls for the paired phone.
  2. On the Android phone: open Link to Windows and tap Lock PC.

Limits: it needs a phone paired with the PC beforehand, it is meant for a person locking their own PC, and locking also disconnects the phone until the PC is signed in again. It is not an admin tool for a fleet.

Method 3: PowerShell Remote Command (On Network or VPN)

When the PC is on your network or VPN and you have admin rights on it, you can disconnect the signed-in user's session. A disconnected console session goes back to the lock screen, and the user's apps keep running.

query session /server:TARGETPC
tsdiscon <SessionID> /server:TARGETPC

The first command lists the sessions on the PC; use the ID of the active console session in the second. To end the session instead, which closes the user's apps, use logoff <SessionID> /server:TARGETPC.

A common mistake: calling the Windows lock function (LockWorkStation, or rundll32.exe user32.dll,LockWorkStation) through Invoke-Command or PsExec. Those run in a separate, non-interactive session, so the command reports success but the user's desktop does not lock. The lock function only works when it runs in the signed-in user's own session, for example from a scheduled task that runs as that user.

Limits: it needs network or VPN access to the PC, admin rights, and remote administration allowed through the PC's firewall. It does not reach laptops that are off the network.

Method 4: Intune, the Gap and the Workaround

Intune's Remote lock is greyed out for Windows because it does not support Windows. Microsoft lists Remote lock for Android Enterprise company-owned devices, Android Open Source Project devices, iOS and iPadOS, macOS and visionOS, and not for Windows 10 or 11. It is a platform limit, not a missing permission or a licence issue.

What Intune admins do instead:

  • Disable the user's account in Microsoft Entra ID and revoke their sessions, so the password and existing sign-ins stop working.
  • Run a script on the device. Intune Remediations (which need eligible Windows Enterprise or Education licences) or platform scripts can, for example, force BitLocker recovery (Method 5) or sign the user out.
  • Some admins use a script that disables the Windows sign-in options and shows a message on the sign-in screen, with a second script to reverse it. This is a community workaround, not a Microsoft feature, so test it carefully.
  • Wipe the PC from Intune if it will not come back. See remote wipe on Windows.

All of these need the PC to check in with Intune to receive the command.

Method 5: BitLocker Recovery Mode (Terminated Employee Scenario)

A screen lock is the wrong tool when someone has left the company with a laptop and still knows the password. Forcing BitLocker recovery restarts the PC to the BitLocker recovery screen, which asks for the 48-digit recovery key. Without that key, which IT holds, the PC cannot start Windows.

manage-bde -forcerecovery C:
shutdown /r /t 0

Run it remotely through your MDM's script tool, or over the network with an admin session. Pair it with disabling the user's account in your directory.

Limits: BitLocker must already be on, the PC restarts, and it can only be undone with the recovery key. Make sure the key is stored before you run it, in your MDM, Microsoft Entra ID or Active Directory.

Method 6: MDM with Remote PowerShell Command Deployment (Fleet Scale)

Methods 3 and 5 work for one PC on the network. For a fleet of laptops that rarely come to the office, you need the same actions from a central console, over the internet. An MDM that runs scripts on enrolled Windows PCs can send the BitLocker recovery script, sign the user out or run your own lock script in the user's session, without a VPN.

Limits: the PCs must be enrolled before anything goes missing, the PC must be online to receive the script, and an MDM subscription is needed. Check that your MDM can run scripts on demand, not only on a schedule.

6 Remote PC Lock Methods Compared

MethodWorks off the network?Needs setup in advance?CostBest for
Find my deviceYes, over the internetYes: turned on, Microsoft accountFreeA PC signed in with a Microsoft account
Link to Windows Lock PCYes, through the phoneYes: phone paired, remote PC controls onFreeA person locking their own PC
Disconnect the session (tsdiscon)No, needs network or VPNYes: admin rights, remote administration allowedFreeDomain PCs in the office
Intune: account disable and scriptsYesYes: enrolled, scripts readyIntune licenceIntune-managed fleets
BitLocker recoveryYes, through an MDM scriptYes: BitLocker on, key storedFreeA leaver's laptop that must not be used again
MDM scriptYesYes: enrolledMDM subscriptionFleets of remote laptops

When Remote Lock Isn't Enough: The Case for Proactive Policies

The 15-Minute Rule: Why Compliance Frameworks Agree on Inactivity Lock

Remote lock only happens after someone notices a problem. An inactivity lock happens every time, with nobody involved. PCI DSS v4.0 requirement 8.2.8 asks for users to re-authenticate after 15 minutes of inactivity, and NIST SP 800-171 and CMMC require a session lock after a set period of inactivity; 15 minutes is the common choice.

With Group Policy: Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > "Interactive logon: Machine inactivity limit", set to 900 seconds. For laptops that never reach the office network, apply the same setting through your MDM.

If a screen saver lock is set to a shorter time than the machine inactivity limit, the PC locks at the shorter time. That is fine for security; just do not assume the 15-minute setting is the one in control.

What to Do When the Device Is Already Offline

Every method here needs the PC to be reachable. A stolen laptop that is switched off may never receive anything. What protects it then is what was set up before: BitLocker encryption with the recovery key stored by IT, a strong sign-in, and accounts you can disable centrally. IBM's 2026 Cost of a Data Breach report put the average breach at $4.99 million worldwide; encrypting every company laptop is the control that keeps a lost device from becoming one.

So when a PC goes missing: disable the user's account and sessions, send a lock or BitLocker recovery if the PC is online, and wipe it if it will not come back.

Which Method Should You Use? A Scenario Guide

  • A PC signed in with a Microsoft account, online: Find my device (Method 1).
  • Your own PC, with an Android phone paired to it: Link to Windows (Method 2).
  • On the same network or VPN, with admin rights: disconnect the session (Method 3).
  • Intune shows Remote lock greyed out: disable the account and use a script (Method 4).
  • A leaver's laptop that must not be used again: BitLocker recovery (Method 5).
  • Many remote laptops: an MDM that runs scripts (Method 6).
  • Not sure: disable the person's account first, then pick the method that reaches the PC.

For phones, the approach is different; see how to remote lock a device.

Managing this across many devices

trio.so does not lock Windows PCs remotely; its lock action covers Android, Apple and Linux devices. On Windows, it enforces BitLocker and shows the encryption status of each PC, keeps BitLocker recovery keys in the console, runs scripts on enrolled Windows PCs, and wipes company-owned Windows PCs that will not come back. See Windows device management.

A company-owned Windows laptop in the trio.so console with the Actions menu open on Wipe device.
In trio.so, Wipe device sits under Security and recovery on a company-owned Windows PC.

Related reading: remote wipe on Windows, BitLocker vs VeraCrypt, IT offboarding checklist and terminated employee email policy.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Protect a lost Windows laptop without a lock button

trio.so enforces BitLocker, keeps recovery keys in the console and wipes company-owned Windows PCs that will not come back.

Start free trial

Manage Every Device From One Console

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

14-day free trial. No credit card required.

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

Smiling womanAbstract geometric patternAbstract geometric patternSmiling womanSmiling woman

Frequently Asked Questions (FAQ)

Yes, with Find my device if the PC uses a Microsoft account and the feature was turned on, or with admin tools such as disconnecting the session over the network or running a script through an MDM. The PC must be online.

Intune's Remote lock does not support Windows PCs. It works for Android company-owned devices, iPhone, iPad, Mac and visionOS. For Windows, disable the account, use a script or wipe the device.

Not with the Remote lock action. You can disable the user in Microsoft Entra ID, run a script through Intune, for example to force BitLocker recovery, or wipe the device.

Disable the user's account and sessions, then lock it with Find my device or force BitLocker recovery through your MDM if it is online, and wipe it if it will not come back. If BitLocker was on, the data stays protected while it is offline.

Yes, from account.microsoft.com/devices, if the PC is signed in with a Microsoft account that is an administrator, Find my device was turned on beforehand and the PC is online.

Related

From the blog

The related industry news, interviews, technologies, and resources.