Examples/Resources/xADManagedServiceAccount/2-CreateGroupManagedServiceAccount.ps1

<#
    .EXAMPLE
        In this example we will create a managed service account.
#>


configuration Example
{
    Import-DscResource -Module xActiveDirectory

    Node localhost
    {
        xADManagedServiceAccount ExampleGroupMSA
        {
            Ensure             = 'Present'
            ServiceAccountName = 'Service01'
            AccountType        = 'Group'
            Path               = 'OU=ServiceAccounts,DC=contoso,DC=com'
        }
    }
}