Examples/AccountPolicy_Example.ps1

configuration AccountPolicies
{
    Import-DscResource -ModuleName SecurityPolicyDsc

    node localhost
    {
        AccountPolicy AccountPolicies
        {
            Name = 'PasswordPolicies'
            Enforce_password_history = 15
            Maximum_Password_Age = 42
            Minimum_Password_Age = 1
            Minimum_Password_Length = 12
            Password_must_meet_complexity_requirements = 'Enabled'
            Store_passwords_using_reversible_encryption = 'Disabled'

        }
    }
}

AccountPolicies -OutputPath c:\dsc 
Start-DscConfiguration -Path c:\dsc -Wait -Force -Verbose