Configuration driven Active Directory management.
Replicate a single item between DCs.
Sync-AdcObject [-Object] <String> [-Source] <String> [-Target] <String[]> [[-Credential] <PSCredential>]
[[-Type] <String>] [-Reverse] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Replicate a single item between DCs. Can use either WinRM or LDAP to trigger a bulk sync of a single object in parallel.
Use this command to ensure a specific object in AD has been replicated across all targeted DCs.
Sync-AdcObject -Object $userAccount -Source $pdc -Target (Get-ADComputer -LdapFilter "(&(primaryGroupID=516)(!(name=$pdc)))").DNSHostName
Replicates the AD object stored in $userAccount across all domain controllers in the current domain.
The object to replicate. Must be a distinguishedName.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The server that contains the current state of the targeted object.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The server(s) that should receive the latest updates for the targeted object.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Credentials tro use for authenticating the operation.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Which protocl should be used to trigger the replication. Can use either LDAP or WinRM, defaults to LDAP.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: LDAP
Accept pipeline input: False
Accept wildcard characters: False
Reverses the replication order in an LDAP-based replication task. In this case, rather than fanning out network connections, the source server is ordered to replicate with each specified target server.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.