helpers/ModulesTillPublishedonGallery/xActiveDirectory/3.0.0.0/Examples/Resources/xADForestProperties/1-ReplaceForestProperties_Config.ps1

<#PSScriptInfo
.VERSION 1.0
.GUID 4ac2de06-ee10-4f15-9ed8-a87d21b48766
.AUTHOR Microsoft Corporation
.COMPANYNAME Microsoft Corporation
.COPYRIGHT (c) Microsoft Corporation. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/PowerShell/xActiveDirectory/blob/master/LICENSE
.PROJECTURI https://github.com/PowerShell/xActiveDirectory
.ICONURI
.EXTERNALMODULEDEPENDENCIES
.REQUIREDSCRIPTS
.EXTERNALSCRIPTDEPENDENCIES
.RELEASENOTES
.PRIVATEDATA
#>


#Requires -module xActiveDirectory

<#
    .DESCRIPTION
        This configuration will manage the Service and User Principal name suffixes
        in the forest by replacing any existing suffixes with the ones specified
        in the configuration.
#>


Configuration ReplaceForestProperties_Config
{
    Import-DscResource -ModuleName xActiveDirectory

    node $AllNodes.NodeName
    {
        xADForestProperties $Node.ForestName
        {
            ForestName                 = $Node.ForestName
            UserPrincipalNameSuffix    = $Node.UserPrincipalNameSuffix
            ServicePrincipalNameSuffix = $Node.ServicePrincipalNameSuffix
        }
    }
}

$ConfigurationData = @{
    AllNodes = @(
        @{
            NodeName                   = 'dc.contoso.com'
            ForestName                 = 'contoso.com'
            UserPrincipalNameSuffix    = 'fabrikam.com', 'industry.com'
            ServicePrincipalNameSuffix = 'corporate.com'
        }
    )
}