PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Set-ADReplicationSite', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.


Sets the replication properties for an Active Directory site.


Set-ADReplicationSite [-Identity] <ADReplicationSite> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-AutomaticInterSiteTopologyGenerationEnabled <Boolean>]
[-AutomaticTopologyGenerationEnabled <Boolean>] [-Clear <String[]>] [-Credential <PSCredential>] [-Description <String>] [-InterSiteTopologyGenerator <ADDirectoryServer>]
[-ManagedBy <ADPrincipal>] [-PassThru] [-ProtectedFromAccidentalDeletion <Boolean>] [-RedundantServerTopologyEnabled <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>]
[-ReplicationSchedule <ActiveDirectorySchedule>] [-ScheduleHashingEnabled <Boolean>] [-Server <String>] [-TopologyCleanupEnabled <Boolean>] [-TopologyDetectStaleEnabled
<Boolean>] [-TopologyMinimumHopsEnabled <Boolean>] [-UniversalGroupCachingEnabled <Boolean>] [-UniversalGroupCachingRefreshSite <ADReplicationSite>]
[-WindowsServer2000BridgeheadSelectionMethodEnabled <Boolean>] [-WindowsServer2000KCCISTGSelectionBehaviorEnabled <Boolean>] [-WindowsServer2003KCCBehaviorEnabled <Boolean>]
[-WindowsServer2003KCCIgnoreScheduleEnabled <Boolean>] [-WindowsServer2003KCCSiteLinkBridgingEnabled <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-ADReplicationSite [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-PassThru] [-Server <String>] -Instance <ADReplicationSite> [-Confirm] [-WhatIf]

Search powershellhelp.space


The Set-ADReplicationSite cmdlet is used to set the properties for an Active Directory site that is being used for replication. Sites are used in Active Directory to either
enable clients to discover network resources (published shares, domain controllers) close to the physical location of a client computer or to reduce network traffic over
wide area network (WAN) links. Sites can also be used to optimize replication between domain controllers.



Online Version: http://go.microsoft.com/fwlink/p/?linkid=291125




-------------------------- EXAMPLE 1 --------------------------

PS C:\>Set-ADReplicationSite -Identity NorthAmerica -InterSiteTopologyGenerator corp-DC02 -AutomaticInterSiteTopologyGenerationEnabled $False

The command sets the properties of the site with name NorthAmerica to prevent its intersite topology generator (ISTG) at corp-DC02 from generating connections for intersite

-------------------------- EXAMPLE 2 --------------------------

PS C:\>Get-ADReplicationSite -Filter * | % {Set-ADReplicationSite $_ -ScheduleHashingEnabled $True}

This command returns all the sites in the directory and sets the ScheduleHashingEnabled property to spread replication start times randomly across the entire schedule
interval rather than just the first quarter of the interval.

-------------------------- EXAMPLE 3 --------------------------

PS C:\>$schedule = New-Object -TypeName System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule
PS C:\> $schedule.ResetSchedule()
PS C:\> $schedule.SetDailySchedule("Twenty","Zero","TwentyTwo","Thirty")
PS C:\> Set-ADReplicationSite -Identity "Asia" -ReplicationSchedule $schedule

This example sets the daily replication schedule of the site with name Asia.