Navigation Menu

Thursday, 8 May 2014

Create Custom Password Policy with Powershell

In this article, I am going to give powershell script examples to create Fine Grained Password Policy or Custom Password Policy and explain how to link/apply a fine grained password policy to specific user or a group using Powershell.

Create Fine Grained Password Policy using Powershell Script

We can use the powershell cmdlet New-ADFineGrainedPasswordPolicy to create a new Active Directory custom password policy. Follow the below steps to run the below Powershell script that will create new fine grained password policy with the name AdminUserPSO.
1. Copy the below powershell script and paste in Notepad file.
2. Change the new policy name AdminUserPSO into your own password policy name which you want to create.
4. SaveAs the Notepad file with the extension .ps1 like Create-Fine-Grained-PasswordPolicy.ps1