PowerShell - Apply New Fine Grained Password Policy to OU : I have created and Organizational-Unit in server 2012 using PowerShell and also I have created a Fine-Grained-Password-Policy using PowerShell by following script

New-ADFineGrainedPasswordPolicy -Name test -DisplayName test -Precedence 100 -ComplexityEnabled $true -ReversibleEncryptionEnabled $false -PasswordHistoryCount 10 -MinPasswordLength 3 -MinPasswordAge 1.00:00:00 -MaxPasswordAge 100.00:00:00 -LockoutThreshold 3 -LockoutObservationWindow 0.00:05:00 -LockoutDuration 0.00:10:00 

I want to apply the above policy in my created Organizational Unit which named "OU=HRdep,DC=ghufranataie,DC=com" Using PowerShell commands 

in following commands, Applies To is empty, I don't know how to set my OU distinguished name to "test" fine grained password policy

{

PS C:\Users\Administrator> New-ADOrganizationalUnit -name HRdep

PS C:\Users\Administrator> Get-ADFineGrainedPasswordPolicy -identity test
AppliesTo                   : {}

ComplexityEnabled           : True

DistinguishedName           : CN=test,CN=Password Settings Container,CN=System,DC=ghufranataie,DC=com

LockoutDuration             : 00:10:00

LockoutObservationWindow    : 00:05:00

LockoutThreshold            : 3

MaxPasswordAge              : 100.00:00:00

MinPasswordAge              : 1.00:00:00

MinPasswordLength           : 3

Name                        : test

ObjectClass                 : msDS-PasswordSettings

ObjectGUID                  : bc1a09d3-3bb6-4e94-b8a5-88ac12eb060f

PasswordHistoryCount        : 10

Precedence                  : 100

ReversibleEncryptionEnabled : False

}
[Fine Grained Password Policy and Organizational Unit in PowerShell][1]


  [1]: https://i.stack.imgur.com/yeVxf.jpg