Fine-grained password policies let one Active Directory domain enforce different password and lockout rules for different sets of accounts, so administrators, service accounts and ordinary users no longer have to share a single domain-wide compromise. Without them, the domain password policy set in Group Policy applies to every domain user account. That usually means either a policy too weak for privileged accounts or one too strict for the general workforce, and service accounts end up with whatever is left.
This guide explains how password settings objects (PSOs) work, how Active Directory decides which one applies, and how to design a small, auditable set for the three populations most organisations care about. For the wider question of what values a modern password policy should contain, see the Password Policy Guide (NIST-aligned); this page focuses on the Active Directory mechanism and its design choices.
This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.
Key takeaways
- A PSO is a directory object holding password and lockout settings. It applies only to user objects and global security groups, never directly to an organisational unit.
- Only one PSO is effective for a user. A PSO linked directly to the user beats any PSO inherited through a group; among equals, the lowest precedence number wins.
- Design a small number of PSOs with clear owners: typically one for privileged administrators, one for user-based service accounts and, optionally, one for the general workforce if it differs from the domain policy.
- For service accounts, a PSO raises the floor but does not remove the human-known password. Managed service accounts remain the stronger answer wherever the application supports them.
- Verify the resultant policy for representative accounts after every change, and audit PSO objects and their group memberships as tier zero configuration.
What a password settings object is
Microsoft describes fine-grained password policies as a way to define different password and account lockout policies for different sets of users in a domain, and gives the example of applying stricter settings to privileged accounts and less strict settings to other users. Each policy is stored as a password settings object in the System > Password Settings Container of the domain.
A PSO can hold the same settings as the domain password and lockout policy. The parameters exposed by the New-ADFineGrainedPasswordPolicy cmdlet show the full set:
| Setting | Cmdlet parameter | What it controls |
|---|---|---|
| Precedence | Precedence | Priority when more than one PSO applies; lower value wins |
| Minimum length | MinPasswordLength | Minimum number of characters |
| Complexity | ComplexityEnabled | Whether passwords must mix character types |
| History | PasswordHistoryCount | Number of previous passwords that cannot be reused |
| Maximum age | MaxPasswordAge | How long a password can be used before it must change |
| Minimum age | MinPasswordAge | How soon a password can be changed again |
| Reversible encryption | ReversibleEncryptionEnabled | Whether passwords are stored with reversible encryption |
| Lockout threshold | LockoutThreshold | Failed attempts before lockout |
| Lockout observation window | LockoutObservationWindow | Time after which the failed attempt count resets |
| Lockout duration | LockoutDuration | How long a locked account stays locked |
Unlike the domain policy, a PSO is not a Group Policy setting. It is created, linked and changed as a directory object, which matters for who can change it and how you audit it.
Requirements and permissions
Current Microsoft documentation for creating PSOs through the Active Directory Administrative Center or PowerShell lists three prerequisites: a domain functional level of Windows Server 2012 or higher for that procedure, membership of Domain Admins, and either the Active Directory Administrative Center or the Active Directory module for Windows PowerShell from the Remote Server Administration Tools. Older Microsoft security policy documentation notes that the feature itself dates from Windows Server 2008 and 2008 R2.
By default only Domain Admins can set fine-grained password policies, although Microsoft notes the ability can be delegated. Treat any delegation carefully. Whoever can edit a PSO, or change membership of a group a PSO targets, can weaken the password rules for every account in that scope. In a tiered model that makes PSOs and their target groups tier zero objects. The Active Directory Delegation guide covers how to scope such rights.
How precedence and the resultant policy work
A user can be associated with several PSOs, directly or through group membership, but only one is effective. Microsoft's documentation for Get-ADUserResultantPasswordPolicy calls this the resultant set of policy and states it is held in the msDS-ResultantPSO attribute. The rules are:
- If only one PSO is associated with the user, that PSO applies.
- If more than one is associated, a PSO applied directly to the user wins over any PSO applied through a group.
- If more than one PSO applies directly to the user, the one with the lowest
msDS-PasswordSettingsPrecedencevalue wins, and Microsoft notes this condition is logged as a warning in the Active Directory event log. - If no PSO applies directly, the PSOs of the global security groups the user belongs to are compared and the lowest precedence value wins.
If no PSO is associated at all, the account falls back to the domain password policy. Two design consequences follow:
- Direct links override group design. A PSO linked directly to an administrator, perhaps as a temporary exception, will beat the privileged group PSO even if its precedence number is higher. Direct links should be rare, documented and reviewed.
- Precedence numbers need room. Microsoft's cmdlet examples use values such as 100, 200 and 500. Leaving gaps lets you insert a new policy later without renumbering. Give the strictest policy the lowest number so that an account in several groups always gets the strongest rules.
Designing a PSO set: users, admins and service accounts
Most domains need only two or three PSOs. Every extra one adds a precedence decision and a review burden. A common starting design is below. The values in this table are illustrative NHI Mgmt Group starting points for discussion, not Microsoft recommendations; align final values with your own policy and with current NIST guidance.
| Population | Target group | Precedence | Design intent |
|---|---|---|---|
| Privileged administrators | A global group containing tier zero and tier one admin accounts | 10 | Longest minimum length of the human policies, strict lockout, history to stop reuse |
| User-based service accounts | A global group containing every account used by an application or service | 20 | Very long, randomly generated passwords; lockout tuned so a misconfigured application does not cause repeated outages |
| General workforce | Domain users, or leave to the domain policy | 100 | Length and screening focused, matching the domain policy or slightly stronger |
Microsoft's own cmdlet example creates a service account PSO with a 20 character minimum and a 30 day maximum age, and an administrators PSO with different values, both built from a shared template object. The example shows the mechanics well. Treat its numbers as a demonstration rather than a target: frequent forced expiry on service accounts increases the number of manual password changes and the chance of an outage.
On values, NIST SP 800-63B-4 favours longer passwords and screening against compromised and common values over composition rules and routine forced changes. Active Directory PSOs alone cannot screen against a blocklist, so if you adopt that approach, pair the PSO with a password filter or directory service that does. Keep the PSO focused on what it can enforce: length, history, age and lockout.
Service accounts: where a PSO helps and where it does not
User-based service accounts are a natural PSO target because their needs differ sharply from people's. A person needs a password they can remember; a service account needs one nobody remembers at all. A dedicated PSO lets you:
- Set a minimum length far above the human policy, so any password set by hand must be long.
- Avoid forced expiry that a busy team will handle by resetting to something easy to type.
- Tune lockout so a stale credential in one application does not repeatedly lock out an account shared by several servers.
Long service account passwords also raise the cost of offline cracking after a Kerberos service ticket is requested for the account, which is the core risk discussed in the Kerberoasting and AS-REP Roasting Defence Guide.
A PSO does not solve the underlying problem: a person still chose, typed and possibly stored the password. Group managed service accounts take password generation and rotation out of human hands entirely. Where an application supports them, migrate; the How to convert AD service accounts to gMSA guide covers the process. Keep the service account PSO for the accounts that genuinely cannot move, and use membership of its target group as a live list of the user-based service accounts still waiting for migration.
The service account group is only as accurate as your inventory. If you do not yet know which user objects are really service accounts, start with How to build a service account inventory from Active Directory.
Creating and assigning PSOs
There are two supported tools. In the Active Directory Administrative Center, open System > Password Settings Container, create a new password settings object, fill in the required name and precedence, set the values, and add the target users or groups under Directly Applies To. Microsoft's procedure notes that PSOs created this way are protected from accidental deletion, and that the protection must be cleared before deletion.
In PowerShell, the Active Directory module provides the matching cmdlets. The sequence below is illustrative; test values and names in a lab before using them:
New-ADFineGrainedPasswordPolicy -Name "PSO-Tier0-Admins" -Precedence 10 -MinPasswordLength 16 -PasswordHistoryCount 24 -LockoutThreshold 5 -LockoutObservationWindow "0.00:15:00" -LockoutDuration "0.00:30:00" -ComplexityEnabled $true -ReversibleEncryptionEnabled $false -ProtectedFromAccidentalDeletion $true
Add-ADFineGrainedPasswordPolicySubject -Identity "PSO-Tier0-Admins" -Subjects "GG-Tier0-Admins"
Microsoft's documentation for Add-ADFineGrainedPasswordPolicySubject confirms that the cmdlet applies a policy to one or more global security groups and users. Practical points when assigning:
- Always target groups, not individual accounts, except for documented exceptions.
- Use global security groups. Other group scopes are not valid PSO targets.
- Name groups and PSOs so the link is obvious, and record an owner in the description.
- Remember that a policy change takes effect at the next password change. Existing passwords that do not meet a new minimum length are not invalidated, so plan a reset where that matters.
Shadow groups and OU-based targeting
PSOs cannot be linked to an organisational unit. Microsoft's security policy documentation states this directly and describes the workaround: a shadow group, which it defines as a global security group logically mapped to an OU to enforce a fine-grained password policy. Membership of the shadow group must then be kept in step with the OU.
Keeping that membership accurate is the hard part. A scheduled task that adds every account in an OU to the matching group is simple but runs with rights that, if misused, could move accounts in or out of a privileged password policy. Run such automation under a dedicated, tightly scoped identity, log every change, and alert on membership changes made outside the job. For privileged groups, many teams prefer explicit membership driven by their identity governance process rather than OU-based automation.
Verifying and auditing
Do not assume a PSO applies; check it. In the Administrative Center, select a user and choose View Resultant Password Settings. In PowerShell, Get-ADUserResultantPasswordPolicy -Identity <user> returns the effective PSO, and no result means the domain policy applies. After any change, check at least:
- A tier zero administrator, to confirm the privileged PSO wins.
- An administrator who is also in another targeted group, to confirm precedence behaves as designed.
- A service account in the service account group.
- A standard user, to confirm they receive the workforce PSO or domain policy.
For ongoing assurance:
- Export all PSOs with
Get-ADFineGrainedPasswordPolicy -Filter *on a schedule and compare against an approved baseline. - Alert on changes to objects in the Password Settings Container and on membership changes to PSO target groups. The Active Directory Security Monitoring and Event IDs Guide covers directory change auditing.
- Report accounts with a PSO linked directly rather than through a group, and review each one.
- Report privileged accounts whose resultant policy is not the privileged PSO.
Remember that password policy is visible to any authenticated user, which is why ATT&CK tracks T1201 Password Policy Discovery. Attackers use lockout thresholds to pace password spraying under the limit, so detection of spraying should not depend on lockout alone; see the Password Spraying and Credential Stuffing Defence Guide.
Common failure patterns
- PSO linked to the wrong group scope. A domain local or universal group is chosen, the policy silently fails to apply, and nobody checks the resultant policy.
- Direct links forgotten. A temporary exception linked to one administrator overrides the privileged PSO for years.
- Precedence inverted. The workforce PSO has a lower number than the admin PSO, so an administrator who is also a domain user gets the weaker rules.
- Service account PSO with aggressive expiry. Frequent forced changes lead to outages, then to pressure to exempt accounts entirely.
- Shadow group drift. Accounts move between OUs but group membership is not updated, so new administrators sit under the workforce policy.
- Unaudited delegation. Help desk staff can edit a PSO target group, letting them move any account to a weaker policy.
- PSO used instead of migration. The service account policy becomes the permanent answer, and accounts that could use managed service accounts are never moved.
Practitioner checklist
- Confirm domain functional level and tooling meet Microsoft's prerequisites before planning PSOs.
- Define no more than three PSOs to start, each with a named owner, a global security target group and a documented purpose.
- Give the privileged administrator PSO the lowest precedence number, with gaps between values.
- Create a service account PSO with long minimum length and lockout tuned for applications, and use its group as the gMSA migration backlog.
- Avoid direct PSO links to accounts except for documented, time-limited exceptions.
- Check the resultant policy for representative accounts after every change.
- Treat PSOs, their target groups and any shadow group automation as tier zero, with change alerting.
- Export PSO settings on a schedule and compare against an approved baseline.
- Plan password resets where a new minimum length must apply to existing passwords.
Standards and references
- Microsoft Learn: Configure fine-grained password policies for AD DS
- Microsoft Learn: Get-ADUserResultantPasswordPolicy
- Microsoft Learn: New-ADFineGrainedPasswordPolicy
- Microsoft Learn: Add-ADFineGrainedPasswordPolicySubject
- Microsoft Learn: Password Policy (security policy settings)
- NIST: SP 800-63B-4 Authentication and Authenticator Management
- MITRE ATT&CK: M1027 Password Policies
- MITRE ATT&CK: T1201 Password Policy Discovery
Related NHI Mgmt Group resources: Password Policy Guide (NIST-aligned) · How to convert AD service accounts to gMSA · Kerberoasting and AS-REP Roasting Defence Guide · Active Directory and Entra ID Hardening Guide