top of page

Force Replication Between AD Servers

  • aymeneljaziri
  • 29 juil. 2023
  • 1 min de lecture


ree

This script will automatically force synchronisation between AD servers.

I recommand to execute this script on main AD server.


ree


function ReplicateAllDomainController 
{
	(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
}

ReplicateAllDomainController


Thanks




Aymen EL JAZIRI


System Administrator

Commentaires


Aymen EL JAZIRI

  • alt.text.label.LinkedIn

© 2023 par Aymen EL JAZIRI

bottom of page