Windows password policy
The Windows password policy sets the password and lockout rules for local accounts on managed Windows PCs, such as how long a password must be and how many failed sign-ins lock an account. Workspace admins set it for the whole workspace in Devices > Configuration Profiles > Windows > Password Policy, or for one PC on its Policies tab.
The policy applies to PCs running Oneleet Agent 2.7.0 or later, on Windows 10 and 11, including Home edition.
Set the password rules
Section titled “Set the password rules”Enter a value for each rule you want to enforce. In the workspace policy, a rule you leave empty keeps the PC’s own setting. In a PC’s override, a rule you leave empty takes the workspace policy’s value.
| Setting | What it does |
|---|---|
| Minimum password length | The fewest characters a new password can have, up to 128. Lengths above 14 need Windows 10 version 2004 or later. |
| Require complex passwords | New passwords must use three of uppercase letters, lowercase letters, digits, and symbols, and can’t contain the account name |
| Password history | How many previous passwords Windows won’t accept again, up to 24 |
| Maximum password age | Days before Windows makes people choose a new password. 0 means passwords never expire. |
| Minimum password age | Days a new password must be kept before it can be changed again. When passwords expire, it must be less than the maximum password age. |
The secure defaults require at least 12 characters with complexity, and lock an account for 15 minutes after 10 failed sign-ins. They leave password history and password age unset.
Accounts you create or reset on a PC’s User accounts tab get a temporary password that meets the policy, however long a minimum you set.
Lock accounts after failed sign-ins
Section titled “Lock accounts after failed sign-ins”| Setting | What it does |
|---|---|
| Lockout threshold | Failed sign-ins before Windows locks the account. 0 means accounts never lock. |
| Lockout duration | Minutes a locked account stays locked before Windows unlocks it |
| Lockout counter reset | Minutes after a failed sign-in before Windows forgets it. It can’t be longer than the lockout duration. |
When the threshold is above 0, set both a lockout duration and a lockout counter reset. A locked account always unlocks by itself once the lockout duration passes, and an admin can’t unlock it from Oneleet, so keep the duration short enough for someone to wait out.
When the rules take effect
Section titled “When the rules take effect”The agent applies the policy as soon as the PC gets it, without a restart. Existing passwords keep working: the length, complexity, and history rules apply the next time a password changes. A maximum password age is the exception. Passwords older than it expire right away, so their owners have to choose a new one at their next sign-in. Until they do, nothing else can sign in with that password either. Services and scheduled tasks that run as the account fail to start, and Remote Desktop with Network Level Authentication refuses the sign-in, so you can lose remote access to the PC. Accounts set so their password never expires aren’t affected.
The agent’s changes show up in the device’s activity log as Windows password policy corrected, with the old and new values. Repeat corrections of the same setting within an hour can share one entry. If someone changes one of these settings on the PC, the agent changes it back within five minutes and logs it the same way.
When no policy the PC follows sets a rule anymore, the agent puts back the value the PC had before Oneleet changed it and logs Windows password policy restored. It leaves a setting as it is if someone changed it on the PC since the agent last set it, or if the values it would put back don’t work together, such as a lockout counter reset longer than the lockout duration. A rule you remove keeps applying while another workspace the PC belongs to still sets it. Uninstalling the agent, including when you delete the device, also puts back the PC’s own values. If your workspace stops using Oneleet MDM, its PCs stop getting the policy, and the agent puts their own values back the same way.
Two cases work differently:
- While any workspace the PC belongs to has excluded it from management or archived it, the agent puts nothing back.
- On a PC that has belonged to more than one workspace, the agent puts the values back, but no workspace’s activity log lists it.
PCs and accounts the policy doesn’t cover
Section titled “PCs and accounts the policy doesn’t cover”The policy covers local accounts only. Microsoft account and Microsoft Entra ID sign-ins, and Windows Hello PINs, follow their own policies.
On a PC joined to an Active Directory domain, the agent leaves these settings alone, because the domain’s Group Policy manages them and would undo any change. The device’s activity log shows Windows password policy not applied with the domain’s name. Set the rules in your domain’s Group Policy instead.
On a PC where Microsoft Intune or another MDM sets some of these settings, the agent leaves those settings to that MDM and applies the rest. Each setting it leaves alone shows up in the device’s activity log as Windows password policy not applied, with the reason.
If a PC’s Policies tab says its password policy override isn’t enforced, the override conflicts with a workspace policy the PC also follows. The PC keeps the workspace policy until you change or reset the override.
If one of these limits gets in your way, tell us through the Feedback link at the bottom of the app’s sidebar or in your dedicated Slack channel with us.