PowerShell Logo Small

Sync-ADObject



This is the built-in help made by Microsoft for the command 'Sync-ADObject', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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 <ADAuthType>] [-Credential <PSCredential>]
[-PassThru [<SwitchParameter>]] [-PasswordOnly [<SwitchParameter>]] [<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/?LinkId=216426
Get-ADObject
Move-ADObject
New-ADObject
Remove-ADObject
Rename-ADObject
Restore-ADObject
Set-ADObject

REMARKS

<

Examples


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

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



Description

-----------

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




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

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



Description

-----------

Pre-cache the password of Sara Davis to the read-only Domain Controller corp-RODC01 using the user's SamAccountName