Can I Replicate A Single Active Directory Object?

by [Published on 21 Jan. 2015 / Last Updated on 21 Jan. 2015]

Tip explains the use of Sync-ADObject PowerShell cmdlet to replicate a single object to all domain controllers.

Starting with Windows Server 2012, there are PowerShell cmdlets available to manage Active Directory replication. One of the PowerShell cmdlets is the Sync-ADObject which allows you to replicate a single Active Directory object to all domain controllers quickly. 

For example, if you want to quickly replicate a user account to all domain controllers, execute the below PowerShell command:

  • Get-ADDomainController -filter * | foreach {Sync-ADObject -object "CN=TestUser1, OU=VIP Users,DC=Test,DC=Local" -source DC1 -destination $_.hostname}

The above command replicates user TestUser1, which is located in the VIP Users OU, to all the domain controllers.

About Nirmal Sharma

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services and Windows Networking. He is specialized in Directory Services, Failover cluster, Hyper-V, System Center, Windows Azure, and Exchange Servers and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles on several web sites. Nirmal can be reached at nirmal_sharma@mvps.org.

See Also


The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP, and was awarded Microsoft MVP in Directory Services. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles for various online communities. Nirmal can also be found contributing to PowerShell based Dynamic Packs for ADHealthProf.ITDynamicPacks.Net solutions.