Fine Grained Password Policies provide you with a way to define different password and account lockout policies for different sets of users in a domain. You can use fine grained password policies to specify multiple password policies within a single domain. You can also apply different restrictions for password and account lockout policies to different sets of users in a domain. For example, you can apply stricter settings to privileged accounts and less strict settings to the accounts of other users.
Fine-grained password policies apply only to global security groups and user objects. By default, only members of the Domain Admins group can set fine grained password policies. However, you can also delegate the ability to set these policies to other users.
Prerequisites
Before you can create fine grained password policies, you need to complete the following prerequisites.
-
The domain functional level must be Windows Server 2012 or higher.
-
You must be a member of the Domain Admins group.
-
You must have either of the following Remote Server Administration Tools (RSAT) installed:
- Active Directory Administrative Center (ADAC), or Active Directory module for Windows PowerShell.
Create a fine grained password policy
To create a new fine grained password policy, perform the following steps:
Active Directory Administrative Center
Here's how to create a fine grained password policy using ADAC:
-
Open Active Directory Administrative Center, either from the Tools menu of the Server Manager console or by running an elevated PowerShell session and typing dsac.exe.
-
If the appropriate target domain isn't selected, choose Manage, choose Add Navigation Nodes, and select the appropriate target domain in the Add Navigation Nodes dialog box and then choose OK.
-
In the ADAC navigation pane, open the System container, and then choose Password Settings Container.
-
In the Tasks pane, choose New, and then choose Password Settings.
-
Fill in or edit fields inside the property page to create a new Password Settings object. The Name and Precedence fields are required.
-
Under Directly Applies To, choose Add, type the name of the group to which the fine grained password policy, and then choose OK.
-
Choose OK to submit the creation.
PowerShell
Here's how to create a fine grained password policy using the New-ADFineGrainedPasswordPolicy cmdlet.
-
To open an elevated PowerShell session, right-click on the Start button, choose Windows PowerShell (Admin).
-
To create a new fine grained password policy named
PasswordPolicy, use the following example. Adjust the settings as needed and run the command:$policyParams = @{ Name = "PasswordPolicy" ComplexityEnabled = $true LockoutDuration = "00:30:00" LockoutObservationWindow = "00:30:00" LockoutThreshold = "0" MaxPasswordAge = "42.00:00:00" MinPasswordAge = "1.00:00:00" MinPasswordLength = "7" PasswordHistoryCount = "24" Precedence = "1" ReversibleEncryptionEnabled = $false ProtectedFromAccidentalDeletion = $true } New-ADFineGrainedPasswordPolicy @policyParams -
Assign the new policy to a group using the Add-ADFineGrainedPasswordPolicySubject cmdlet. For example, to assign the
PasswordPolicypolicy to thegroup1group, run the following command:Add-ADFineGrainedPasswordPolicySubject PasswordPolicy -Subjects group1
View a resultant set of policies for a user
To view the resultant policy that applies to a specific user, perform the following steps:
Active Directory Administrative Center
Here's how to view the resultant policy that applies to a specific user using ADAC:
-
Open Active Directory Administrative Center, either from the Tools menu of the Server Manager console or by running an elevated PowerShell session and typing dsac.exe.
-
If the appropriate target domain isn't selected, choose Manage, choose Add Navigation Nodes, and select the appropriate target domain in the Add Navigation Nodes dialog box and then choose OK.
-
Navigate to the user for whom you wish to view the resultant policy settings.
-
Choose View Resultant Password Settings in the Tasks pane.
-
Examine the password setting policy and then choose Cancel.
PowerShell
Here's how to use the Get-ADUserResultantPasswordPolicy cmdlet to view the policy that applies to a specific user.
-
To open an elevated PowerShell session, right-click on the Start button, choose Windows PowerShell (Admin).
-
To view the resultant policy that applies to
user1, run the command. Replaceuser1with the desired user.Get-ADUserResultantPasswordPolicy -Identity test1
Edit a fine grained password policy
Edit a fine grained password policy using the following steps:
Active Directory Administrative Center
Here's how to edit a fine grained password policy using ADAC:
-
Open Active Directory Administrative Center, either from the Tools menu of the Server Manager console or by running an elevated PowerShell session and typing dsac.exe.
-
If the appropriate target domain isn't selected, choose Manage, choose Add Navigation Nodes, and select the appropriate target domain in the Add Navigation Nodes dialog box and then choose OK.
-
In the ADAC Navigation Pane, expand System and then expand the Password Settings Container.
-
Select the fine grained password policy you wish to edit and choose Properties in the Tasks pane.
-
Modify the settings that you wish to change and choose OK.
PowerShell
Here's how to use the Set-ADFineGrainedPasswordPolicy cmdlet to modify an existing policy.
-
Open an elevated PowerShell session, right-click on the Start button. Choose Windows PowerShell (Admin).
-
To change the password history setting of the
PasswordPolicypolicy, run the following command. ReplacePasswordPolicywith the desired policy name.Set-ADFineGrainedPasswordPolicy PasswordPolicy -PasswordHistoryCount:"30" -
You can change other settings in the same way. For more information, review the Set-ADFineGrainedPasswordPolicy reference article.
Delete a fine grained password policy
Perform the following steps to delete a fine grained password policy:
Active Directory Administrative Center
Here's how to delete a fine grained password policy using ADAC:
-
Open Active Directory Administrative Center, either from the Tools menu of the Server Manager console or by running an elevated PowerShell session and typing dsac.exe.
-
If the appropriate target domain isn't selected, choose Manage, choose Add Navigation Nodes, and select the appropriate target domain in the Add Navigation Nodes dialog box and then choose OK.
-
In the ADAC Navigation Pane, expand System and then expand Password Settings Container.
-
Select the fine grained password policy you wish to remove and in the Tasks pane choose Properties.
-
Clear the Protect from accidental deletion checkbox and choose OK.
-
Select the fine grained password policy, and in the Tasks pane choose Delete.
-
Choose OK in the confirmation dialog to delete the policy.
PowerShell
Here's how to use the Remove-ADFineGrainedPasswordPolicy cmdlet to delete a fine grained password policy.
-
Open an elevated PowerShell session by right-clicking on the Start button and choosing Windows PowerShell (Admin).
-
Remove deletion protection from the policy by running the following command. Replace
PasswordPolicywith the desired policy name.Set-ADFineGrainedPasswordPolicy -Identity PasswordPolicy -ProtectedFromAccidentalDeletion $False -
To remove the policy, run the following command. Replace
PasswordPolicywith the desired policy name.Remove-ADFineGrainedPasswordPolicy PasswordPolicy
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: orin-thomas). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
