Reset-DfsrCloneState

Cancels a cloning operation.

Syntax

Reset-DfsrCloneState
     [-Force]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Reset-DfsrCloneState cmdlet cancels an ongoing Distributed File System (DFS) Replication database cloning operation and resets the database of the volume 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.

Examples

Example 1: Cancel a cloning operation

PS C:\> Reset-DfsrCloneState

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

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Force

Forces the command to run without asking for user confirmation.

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

-WhatIf

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

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

Inputs

None

Outputs

None