Remove-CMFileReplicationRoute

Remove-CMFileReplicationRoute

Removes a file replication route from Configuration Manager.

Syntax

Parameter Set: SearchBySiteCodeMandatory
Remove-CMFileReplicationRoute -DestinationSiteCode <String> -SourceSiteCode <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-CMFileReplicationRoute cmdlet removes a file replication route from Microsoft System Center 2012 Configuration Manager. System Center 2012 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 routes were known as addresses in versions of Configuration Manager before System Center 2012 Configuration Manager. The functionality of file replication routes is the same as that of addresses in earlier versions.

Parameters

-DestinationSiteCode<String>

Specifies the destination site code for the file replication route that you remove.

Aliases

DesSiteCode

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Force

Removes a file replication route without prompting you for confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SourceSiteCode<String>

Specifies the source site code for the file replication route that you remove.

Aliases

SiteCode

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove a file replication route

This command removes a file replication route from the site named ImgData01 to the site named ImgData05.

PS C:\> Remove-CMFileReplicationRoute -DestinationSiteCode "ImgData05" -SourceSiteCode "ImgData01"

Get-CMFileReplicationRoute

New-CMFileReplicationRoute

Set-CMFileReplicationRoute