Examples/Resources/ADReplicationSite/2-ADReplicationSite_CreateADReplicationSiteRenameDefault_Config.ps1
<#PSScriptInfo
.VERSION 1.0 .GUID f486afc3-63c8-4809-a84a-34bd227023a3 .AUTHOR Microsoft Corporation .COMPANYNAME Microsoft Corporation .COPYRIGHT (c) Microsoft Corporation. All rights reserved. .TAGS DSCConfiguration .LICENSEURI https://github.com/PowerShell/ActiveDirectoryDsc/blob/master/LICENSE .PROJECTURI https://github.com/PowerShell/ActiveDirectoryDsc .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES .RELEASENOTES .PRIVATEDATA #> #Requires -module ActiveDirectoryDsc <# .DESCRIPTION This configuration will create an Active Directory replication site called 'Seattle'. If the 'Default-First-Site-Name' site exists, it will rename this site instead of create a new one. #> Configuration ADReplicationSite_CreateADReplicationSiteRenameDefault_Config { Import-DscResource -Module ActiveDirectoryDsc Node localhost { ADReplicationSite 'SeattleSite' { Ensure = 'Present' Name = 'Seattle' RenameDefaultFirstSiteName = $true } } } |