Reset-DfsrCloneState

Reset-DfsrCloneState

Cancels a cloning operation.

Syntax

Parameter Set: Default
Reset-DfsrCloneState [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Reset-DfsrCloneState cmdlet cancels an ongoing DFS Replication database cloning operation and resets the volume's database to the previous state.

When you cancel an export, the DFS Replication service restores the backup database copy that it created at the start of the process. When you cancel an import, the DFS Replication service deletes the new database copy. When you run the cmdlet, the cmdlet sends the reset and waits for the DFS Replication service to complete. Use the Get-DfsrState cmdlet to determine the current reset status.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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.

  • [none]

Outputs

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

  • [none]

Examples

Example 1: Cancel a cloning operation

This command cancels the ongoing DFS Replication cloning operation and resets the volume's database to the previous state.

PS C:\> Reset-DfsrCloneState

Get-DfsrCloneState