Skip to content

Wait-ForADReplication

SYNOPSIS

Laat je script wachten tot wanneer het AD object dat je doorgeeft op alle DC's gerepliceerd staat.

SYNTAX

Wait-ForADReplication [-ObjectDN] <Object> [-IncludeExchange] [[-MaxWaitSeconds] <Int32>] [<CommonParameters>]

DESCRIPTION

Wanneer je een user of mailbox hebt aangemaakt kan je deze naar deze function pipen. Deze function wacht dan tot het object op alle DC's is gerepliceerd, en geeft je de progress.

EXAMPLES

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

PARAMETERS

-ObjectDN

Array van DNs of objecten die aangepast zijn en waarop dus gewacht moet worden

Type: Object
Parameter Sets: (All)
Aliases: DistinguishedName, DN

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-IncludeExchange

Met deze switch geef je aan dat er naast de DC's ook nog gewacht moet worden op het Exchange recipient object

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-MaxWaitSeconds

Maximaal aantal seconden dat gewacht wordt op replicatie (standaard 45)

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 45
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