Active Directory Management Framework

Configuration driven Active Directory management.

Sync-AdcObject

SYNOPSIS

Replicate a single item between DCs.

SYNTAX

Sync-AdcObject [-Object] <String> [-Source] <String> [-Target] <String[]> [[-Credential] <PSCredential>]
 [[-Type] <String>] [-Reverse] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

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.

PARAMETERS

-Object

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

-Source

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

-Target

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

-Credential

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

-Type

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

-Reverse

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

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES