Examples/Resources/SPMinRoleCompliance/1-EnsureCompliance.ps1

<#
.EXAMPLE
    This example shows how to ensure the farm is always compliant with MinRole settings
#>


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

        node localhost {
            SPMinRoleCompliance MinRoleCompliance 
            {
                State                = "Compliant"
                PSDscRunAsCredential = $SetupAccount
            }
        }
    }