PowerShell Logo Small

Sync-ADObject



This is the built-in help made by Microsoft for the command 'Sync-ADObject', 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.

SYNOPSIS

Replicates a single object between any two domain controllers that have partitions in common.

SYNTAX


Sync-ADObject [-Object] <ADObject> [[-Source] <String>] [-Destination] <String> [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-PassThru] [-PasswordOnly]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Sync-ADObject cmdlet replicates a single object between any two domain controllers that have partitions in common. The two domain controllers do not need to be direct
replication partners. It can also be used to populate passwords in a read-only domain controller (RODC) cache.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=291133
Get-ADObject
Move-ADObject
New-ADObject
Remove-ADObject
Rename-ADObject
Restore-ADObject
Set-ADObject

REMARKS

<

Examples


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

PS C:\>Sync-ADObject -Object "CN=AccountManagers,OU=AccountDeptOU,DC=corp,DC=contoso,DC=com" -Source "corp-DC01" -Destination "corp-DC02"



This command replicates an object with DistinguishedName CN=AccountManagers,OU=AccountDeptOU,DC=corp,DC=contoso,DC=com from corp-DC01 to corp-DC02.




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

PS C:\>Get-ADUser -Identity saradavis | Sync-ADObject -Destination "corp-RODC01" -PasswordOnly



This command pre-caches the password of Sara Davis to the read-only Domain Controller corp-RODC01 using SamAccountName of the user.