Active Directory: Force Replication Of All Domain Controllers On All ...
Maybe your like
Active Directory Domain Services uses pull replication to replicate Active Directory Partitions. This means that the Domain Controller on which replication is started receives the data from the source Domain Controller. It’s like a one way ticket.
If you want to replicate all Domain Controllers, then you have to start replication on each of them separately. This may take a while. To save time, I am going to show you a PowerShell One-Liner to force replication on all Domain Controllers of all Active Directory Sites. Let’s take a look at this One-Liner now.
Force Replication of all Domain Controllers on all Sites
Suppose, you have one Domain with multiple sites. (One Forest and one Forest Root Domain).
Log on to one of your Domain Controllers. Start Windows PowerShell with administrative privileges. The domain name and the domain partition don’t need to be specified. They will be filled automatically by Get-ADDomain. 😉
function Replicate-AllDomainController { (Get-ADDomainController -Filter *).Name | Foreach-Object {repadmin /syncall $_ (Get-ADDomain).DistinguishedName /e /A | Out-Null}; Start-Sleep 10; Get-ADReplicationPartnerMetadata -Target "$env:userdnsdomain" -Scope Domain | Select-Object Server, LastReplicationSuccess }
Once completed, you get a nice overview with the computer names of the Domain Controllers and the time of the Last Replication Success.

That’s it.
Have fun replicating your DC’s! More about repadmin here:
https://technet.microsoft.com/en-us/library/cc835086(v=ws.11).aspx
See also
PowerShell: Adding Active Directory Users from Text Files (Bulk)
Windows Server 2016: Configuring Time based Group Membership with PowerShell
PowerShell: Changing Active Directory user logon names (Bulk)
Share this:
- X
- Tumblr
Related
Categories: PowerShell, Windows Server
Tagged as: Active Directory, English, PowerShell, Windows Server, Windows Server 2016
Tag » Active Directory Force Replication Between Sites
-
How Can I Force Active Directory To Replicate Changes?
-
Force Replication Between Two Domain Controllers In Active Directory
-
12.4. Forcing Replication From One Domain Controller To Another
-
Force Active Directory Replication On A Domain Controller
-
How Do I Force Replication Between Two Domain Controllers In A Site?
-
How To Check If Domain Controllers Are In Sync With Each Other
-
Forcing Replication - Active Directory Security Windows Server 2003
-
Would Like To Force Replication Imediately To All Domain Controller In ...
-
Force Rebuild Active Directory Replication Topology Across Site Links
-
Instant Replication Between Active Directory Sites With PowerShell
-
How To Make Active Directory Replicate Instantly - Technipages
-
REpadmin ( How To Force Replicate Between 2 AD Sites) - YouTube
-
Active Directory Replication: A Guide For IT Pros | Petri
-
Microsoft Windows AD Force Intersite Replication And Force DNS ...