Site icon TOSS

Get-ADReplicationFailure

powershell

Get-ADReplicationFailure is accessible with the help of addsadministration module. To install addsadministration on your system please refer to this link.

Synopsis

Returns a collection of data describing an Active Directory replication failure.

Description

The Get-ADReplicationFailure cmdlet returns all failures currently associated with a given domain controller or Active Directory Lightweight Directory Services (AD LDS) instance. The return object is of type ADReplicationFailure. This cmdlet returns the list of failures in the ADReplicationSummary object for a specific server.

Parameters

-AuthType 
         Specifies the authentication method to use. Possible values for this parameter include:

    Required?                    false
    Position?                    named
    Default value                Microsoft.ActiveDirectory.Management.AuthType.Negotiate
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Credential <PSCredential>
    Specifies a user account that has permission to perform this action. The default is the current user.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-EnumeratingServer <String>
    Specifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server. The service may be any of the following:  Active Directory Lightweight Domain Services, Active Directory Domain Services or Active Directory Snapshot instance.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Filter <String>
    Specifies a filter in the provider's format or language. The value of this parameter qualifies the Path parameter. The syntax of the filter, including the use of wildcards, depends on the provider. Filters are more efficient than other parameters, because the provider applies them when retrieving the objects, rather than having Windows PowerShell filter the objects after they are retrieved.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Scope <ADScopeType>
    Specifies the type of object used as input by the Target parameter. The following are allowable values to use:

    Required?                    true
    Position?                    2
    Default value                None
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Target <Object[]>
    Specifies either one or more (using a comma separated list) of Active Directory domain controllers, sites, domains, or forests. It will return results for all the domain controllers that are specified or that are part of the specified container.

    Required?                    true
    Position?                    1
    Default value                DCLocator;  Provider: -Server of the connected drive
    Accept pipeline input?       True (ByValue)
    Accept wildcard characters?  false

Syntax

Get-ADReplicationFailure [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-EnumeratingServer <String>] [-Filter <String>] [-Target] <Object[]> [<CommonParameters>]

Get-ADReplicationFailure [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-EnumeratingServer <String>] [-Filter <String>] [-Scope] <ADScopeType> [[-Target] <Object[]>] [<CommonParameters>]

————————– EXAMPLE 1 ————————–
C:\PS>Get-ADReplicationFailure -Target delhi-DC01
Get a collection of data describing an Active Directory replication failure for delhi-DC01.

————————– EXAMPLE 2 ————————–
C:\PS>Get-ADReplicationFailure -Target delhi-DC01 -Scope Server
Get a collection of data describing an Active Directory replication failure from delhi-DC01 (same as above).

————————– EXAMPLE 3 ————————–
C:\PS>Get-ADReplicationFailure -Target delhi-DC01,delhi-DC02
Get a collection of data describing an Active Directory replication failure from delhi-DC01 and delhi-DC02.

————————– EXAMPLE 4 ————————–
C:\PS>Get-ADReplicationFailure -Target Mumbai -Scope Site
Get a collection of data describing Active Directory replication failures from all the domain controllers in the site ‘ Mumbai ‘.

————————– EXAMPLE 5 ————————–
C:\PS>Get- ADReplicationFailure -Target “delhi.TOSSolution.com” -Scope Domain
Get a collection of data describing Active Directory replication failures from all the domain controllers in the domain ‘delhi.TOSSolution .com’.

————————– EXAMPLE 6 –————————-
C:\PS>Get- ADReplicationFailure -Target “delhi.TOSSolution.com” -Scope Forest
Get a collection of data describing Active Directory replication failures from all the domain controllers in the forest ‘delhi.TOSSolution.com’

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Get-ADReplicationFailure

To know more PowerShell cmdlets(Commands) on addsadministration (Active Directory) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version