Language:EN
Let's talk
← Back to insightsInsights

How to configure Account Lockout in Intune: threshold, duration and reset

Reading time: 2 min ·

Learn how to use Microsoft Intune to apply a custom OMA-URI policy that prevents brute-force attacks by defining the failed-attempt threshold, the lockout duration and the counter reset in Windows 11.

Introduction

One of the key aspects of corporate device security is controlling failed sign-in attempts. With Intune you can strengthen this control through a custom OMA-URI policy, even though these options are not always visible in the standard templates.

This article shows how to apply three essential settings to mitigate brute-force attacks:

  • Account Lockout duration: 15 minutes or more.
  • Invalid attempt threshold: between 1 and 10.
  • Time to reset the counter: 15 minutes or more.

What are OMA-URI and Policy CSP?

To understand what we are going to do, it helps to briefly review these two concepts:

  • OMA-URI (Open Mobile Alliance Uniform Resource Identifier) is a path that allows a configuration profile (from MDM / Intune) to apply a specific setting on a Windows device.
  • Policy CSP (Configuration Service Provider) is the Windows mechanism that interprets those OMA-URI paths and applies the corresponding values on the device (registry, policies, etc.).

In short: the custom policy is created in Intune and contains one or more OMA-URI paths pointing to a specific CSP; Intune sends that configuration to the device and the CSP applies it.

Prerequisites

  • Licences that include Intune P1 or higher.
  • Devices enrolled in and managed through Intune.
  • Windows 11 version 22H2 with KB 5053657, or Windows 11 24H2 or later.
  • Recommendations

Which policies are we going to configure?

To align with security best practices (for example, Microsoft Defender for Endpoint recommendations or security baselines), we will apply these three values:

  • Account lockout duration: 15 minutes or more.
  • Account lockout threshold: between 1 and 10 attempts.
  • Reset account lockout counter after: 15 minutes or more.

How to apply these settings in Intune

  1. Go to the Intune portal (Microsoft Endpoint Manager) and open Devices > Configuration > Profiles.
  2. Create a new profile: Platform: Windows 10 and later; Profile type: Custom.
  3. Add the following OMA-URI setting (as an example):
    • Name: Account Lockout Policy
    • OMA-URI: ./Device/Vendor/MSFT/Policy/Config/DeviceLock/AccountLockoutPolicy
    • Data type: String
    • Value: AccountLockoutDuration:15, AccountLockoutThreshold:10, ResetAccountLockoutCounterAfter:15
  4. Assign the profile to the appropriate device group (ideally a pilot group first).
OMA-URI

About the author:
Kevin Maldonado, LinkedIn

Cybersecurity technician at Allbit Solutions, specialising in protecting Microsoft 365 environments and endpoints. He holds Microsoft certifications in identity and security administration (Identity and Access Administrator Associate, 2025; Azure Security Engineer Associate, 2024), among other credentials.

Shall we talk about your Microsoft environment?

Talk to a specialist →