Reset-DfsrCloneState

Reset-DfsrCloneState

Cancels a cloning operation.

语法

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

详细说明

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.

参数

-Force

在不请求用户确认的情况下,强制该命令运行。

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-Confirm

运行 cmdlet 之前提示你进行确认。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

-WhatIf

显示如果运行 cmdlet 则会发生什么情况。cmdlet 未运行。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

  • [none]

输出

输出类型是 cmdlet 所发出对象的类型。

  • [none]

示例

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