PowerShell Logo Small

Get-ADReplicationSite



This is the built-in help made by Microsoft for the command 'Get-ADReplicationSite', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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

Returns a specific Active Directory replication site or a set of replication site objects based on a specified filter.

SYNTAX


Get-ADReplicationSite [[-Identity] <ADReplicationSite>] [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>]
[<CommonParameters>]
Get-ADReplicationSite [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -Filter <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ADReplicationSite cmdlet returns a specific Active Directory replication site or a set of replication site objects based on a specified filter. Sites are used in
Active Directory to either enable clients to discover network resources (published shares, domain controllers) close to the physical location of a client computer or to
reduce network traffic over wide area network (WAN) links. Sites can also be used to optimize replication between domain controllers.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=291043
New-ADReplicationSite
Remove-ADReplicationSite
Set-ADReplicationSite

REMARKS

<

Examples


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

PS C:\>Get-ADReplicationSite -Filter *



This command gets all the sites.




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

PS C:\>Get-ADReplicationSite -Properties * -Filter {WindowsServer2003KCCSiteLinkBridgingEnabled -eq $TRUE}



This command gets all sites that have the WindowsServer2003KCCBehaviorEnabled flag turned on. The Properties parameter must be set because the
WindowsServer2003KCCSiteLinkBridgingEnabled property is not retrieved by default.




-------------------------- EXAMPLE 3 --------------------------

PS C:\>Get-ADReplicationSite -Identity NorthAmerica



This command gets the site with name NorthAmerica.




-------------------------- EXAMPLE 4 --------------------------

PS C:\>Get-ADReplicationSite -Identity NorthAmerica -Properties AutomaticInterSiteTopologyGenerationEnabled



This command gets the AutomaticInterSiteTopologyGenerationEnabled property of the site with name NorthAmerica.