Examples/Resources/SPPasswordChangeSettings/1-Example.ps1

<#
.EXAMPLE
    This example sets the password change settings for managed accounts in the local farm
#>


    Configuration Example 
    {
        param(
            [Parameter(Mandatory = $true)]
            [PSCredential]
            $SetupAccount
        )
        Import-DscResource -ModuleName SharePointDsc

        node localhost {
            SPPasswordChangeSettings ManagedAccountPasswordResetSettings
            {
                MailAddress                   = "sharepoint`@contoso.com"
                DaysBeforeExpiry              = "14"
                PasswordChangeWaitTimeSeconds = "60"
                NumberOfRetries               = "3"
                PsDscRunAsCredential          = $SetupAccount
            }
        }
    }