Get-CMFileReplicationRoute

Gets a file replication route from Configuration Manager.

Syntax

Get-CMFileReplicationRoute
   [-DestinationSiteCode <String>]
   [-SourceSiteCode <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMFileReplicationRoute
   [-DestinationSiteName <String>]
   [-SourceSiteName <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMFileReplicationRoute cmdlet gets a file replication route from Configuration Manager. Configuration Manager uses file replication routes to transfer file-based data between sites in a hierarchy. Each file replication route identifies a destination site to which file-based data can transfer.

File replication were known as addresses in versions of Configuration Manager before Configuration Manager. The functionality of file replication routes is the same as that of addresses in earlier versions.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: Get a file replication route by using site codes

PS XYZ:\> Get-CMFileReplicationRoute -DestinationSiteCode "IM5" -SourceSiteCode "IM1"

This command creates a file replication route from the site that has the site code IM1 to the site that has the site code IM5.

Parameters

-DestinationSiteCode

Specifies a destination site for data transfers by using a site code.

Type:String
Aliases:DesSiteCode
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DestinationSiteName

Specifies a destination site for data transfers by using a site name.

Type:String
Aliases:DesSiteName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

-SourceSiteCode

Specifies a source site for data transfers by using a site code.

Type:String
Aliases:SiteCode
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SourceSiteName

Specifies a destination site for data transfers by using a site name.

Type:String
Aliases:SiteName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

IResultObject[]

IResultObject