How to Remotely Lock a Windows 11 Device with Microsoft Intune

Imagine that an employee loses their corporate laptop or leaves it unattended in a public place. As an IT administrator, one of your priorities is to prevent unauthorized access to the device and protect corporate information.

Microsoft is introducing Remote Lock, a security capability that allows IT administrators to remotely lock a Windows device through Microsoft Intune, without wiping the device or deliberately deleting its data.

 

In this article, I'll explain how to configure and test this functionality using Microsoft Intune. We'll create the required configuration profiles, configure the OMA-URI settings, trigger the lock, and then restore access to the device.

Important – Preview availability: Remote Lock availability and supported Windows builds may change. Microsoft currently documents this capability as a Preview feature for a specific Windows 11 Insider Experimental Preview build. Check the official Microsoft documentation and confirm that your test device is supported before following this procedure.

1. Understanding Windows Remote Lock

Remote Lock allows an administrator to request that a managed Windows device be locked remotely. It is different from an Intune Wipe action: Remote Lock is intended to prevent access without performing a device reset.

For this demonstration, we'll use a Windows 11 test virtual machine that is already enrolled in Microsoft Intune.

Prerequisites

  • A Microsoft Intune subscription and the appropriate administrative permissions.
  • A supported Windows device enrolled in Microsoft Intune.
  • A supported Windows edition and build, as specified in Microsoft's current documentation.
  • Network connectivity so that the device can communicate with the Intune service and receive the configuration.

2. Create the Remote Lock configuration profile

The procedure described here uses a custom Windows configuration profile and the RemoteDeviceLock configuration service provider (CSP).

Step 1 – Create a custom profile

  1. Open the Microsoft Intune admin center.
  2. Go to Devices > Windows > Configuration.
  3. Select Create > New policy.
  4. Select Windows 10 and later as the platform.
  5. Select the Templates profile type and then Custom.
  6. Select Create and provide a name, such as Windows - Remote Lock.

Step 2 – Add the Remote Lock setting

Under Configuration settings, add the following custom OMA-URI setting:

Setting
Value
Name
Remote Lock State
OMA-URI
./Device/Vendor/MSFT/RemoteDeviceLock/LockState
Data type
Integer
Value
1

The value 1 requests the locked state.

Depending on the supported CSP options for the Windows build being tested, you may also configure the optional message settings documented by Microsoft. For example, the RemoteDeviceLock CSP includes settings for a lock reason and a recovery hint. Confirm their exact supported data types and behavior in the CSP documentation before adding them to your profile.

Step 3 – Assign the profile

Assign the profile to a dedicated device group, for example:
GRP-INTUNE-WINDOWS-REMOTELOCK

Review the assignments and create the profile. Use a dedicated test device first and avoid assigning a lock profile broadly until you have validated the behavior in your environment.

3. Create the Remote Unlock configuration profile

To request that the device return to the unlocked state, create a second custom configuration profile.

Step 1 – Create the profile

  1. Go to Devices > Windows > Configuration.
  2. Select Create > New policy.
  3. Choose Windows 10 and later, then Templates > Custom.
  4. Name the profile Windows - Remote Unlock.

Step 2 – Configure the OMA-URI setting

Setting
Value
Name
Remote Lock State
OMA-URI
./Device/Vendor/MSFT/RemoteDeviceLock/LockState
Data type
Integer
Value
0

The value 0 requests the unlocked state, where supported by the device and CSP implementation.

Step 3 – Assign the profile

Assign this profile to a separate group, for example:
GRP-INTUNE-WINDOWS-REMOTEUNLOCK

Important: Do not leave conflicting lock and unlock settings assigned to the same device. Carefully manage group membership and profile assignments, and verify the resulting device configuration before relying on this workflow operationally.

4. Test Remote Lock on a Windows device

Step 1 – Check the test device

In the Intune admin center, open Devices > Windows and select your test device. Confirm that it is enrolled and has recently synchronized with Intune.

At this point, the Windows device should be accessible normally. This is a good opportunity to take a screenshot of the initial desktop for your demonstration.

Step 2 – Assign the Remote Lock profile

Add the test device to the group used by the Remote Lock profile:
GRP-INTUNE-WINDOWS-REMOTELOCK

Allow time for group membership and policy assignment to be processed. You can review the profile's device status in the Intune admin center. From the device page, you can also initiate a Sync to request an MDM check-in.

Step 3 – Verify the result on Windows

After the device receives and successfully applies the configuration, check the Windows screen and confirm whether the expected remote-lock behavior has occurred.

Capture the actual message displayed by your test build. The wording and behavior may vary depending on the Windows build and the feature's Preview implementation.

5. Test the unlock procedure

Step 1 – Remove the device from the Remote Lock assignment

Remove the test device from GRP-INTUNE-WINDOWS-REMOTELOCK and verify that the lock profile is no longer assigned to it.

Step 2 – Assign the Remote Unlock profile

Add the device to GRP-INTUNE-WINDOWS-REMOTEUNLOCK. The unlock profile requests LockState = 0.

Step 3 – Synchronize and verify

From the device page in Intune, select Sync and wait for the device to receive and process the new configuration. Then verify whether Windows returns to the expected sign-in experience.

Document the actual result in your lab. Do not assume that changing group membership immediately unlocks a device: assignment processing, check-in, CSP support, and the device's connectivity all affect the outcome.

6. Monitor and troubleshoot the Remote Lock state

The RemoteDeviceLock CSP documentation describes a status node that can be used to report the effective lock state:

./Device/Vendor/MSFT/RemoteDeviceLock/Status

Consult Microsoft's current CSP documentation for the supported status values and the method available in your Windows build to retrieve this read-only information.

If the device does not respond as expected, check the following:

  • Is the Windows build supported by the current Preview?
  • Is the device correctly enrolled and checking in with Intune?
  • Has the configuration profile been assigned successfully?
  • Are there conflicting configuration profiles or assignments?
  • Does the device report an error for the RemoteDeviceLock CSP setting?

7. Security considerations

Remote Lock is an additional device-protection measure, not a replacement for a complete incident-response process.

  • Remote Lock does not erase the device's data.
  • It does not replace BitLocker drive encryption.
  • It does not, by itself, disable the user's Microsoft Entra account or revoke authentication sessions.
  • A device needs to receive the management request from the service; a device that remains offline cannot apply a newly delivered configuration.
  • Test the lock and recovery procedure on non-production devices before using it in an operational process.

For a lost or stolen device, assess the complete situation and apply the appropriate identity, access, encryption, and incident-response controls in addition to any device-locking capability.

Conclusion

Remote Lock is an interesting addition to Windows device management with Microsoft Intune. It offers administrators another way to respond to situations where a managed Windows device must be protected from local access.

In this lab, we explored the configuration-profile approach, the RemoteDeviceLock OMA-URI setting, and a test workflow for requesting a lock and an unlock.

Because the feature's availability and behavior may evolve while it is in Preview, always validate the procedure against Microsoft's latest documentation and the exact Windows build deployed in your environment.

Popular posts from this blog

How to reset computer in OOBE mode

Windows Autopilot and Pre-Provisioned deployment

How to implement Applocker with Microsoft Intune