Resume-VMReplication
Resumes a virtual machine replication that is in a state of Paused, Error, Resynchronization Required, or Suspended.
Parameter Set: VMName
Resume-VMReplication [-VMName] <String[]> [-AsJob] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <String[]> ] [-Continue] [-Credential <System.Management.Automation.PSCredential[]> ] [-Passthru] [-ReplicationRelationshipType <VMReplicationRelationshipType]> ] [-Resynchronize] [-ResynchronizeStartTime <DateTime]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: VMObject
Resume-VMReplication [-VM] <VirtualMachine[]> [-AsJob] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-Continue] [-Credential <System.Management.Automation.PSCredential[]> ] [-Passthru] [-ReplicationRelationshipType <VMReplicationRelationshipType]> ] [-Resynchronize] [-ResynchronizeStartTime <DateTime]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: VMReplication
Resume-VMReplication [-VMReplication] <VMReplication[]> [-AsJob] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-Continue] [-Credential <System.Management.Automation.PSCredential[]> ] [-Passthru] [-Resynchronize] [-ResynchronizeStartTime <DateTime]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
The Resume-VMReplication cmdlet resumes replication of a virtual machine with a replication state of Paused, Error, Resynchronization Required, or Suspended.
Runs the cmdlet as a background job.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
在远程会话中或远程计算机上运行该 cmdlet。输入计算机名或会话对象,如 New-cimsession 或 Get-cimsession cmdlet 的输出。默认为本地计算机上的当前会话。
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Specifies one or more Hyper-V hosts on which the virtual machine replication is to be resumed. NetBIOS names, IP addresses, and fully qualified domain names are allowable. The default is the local computer. Use localhost or a dot (.) to specify the local computer explicitly.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Indicates that Hyper-V Replica continues the resynchronization comparisons from where it left off when you resume the virtual machine replication.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Indicates that this cmdlet returns a VMReplication object.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Specifies the replication relationship type of the virtual machine. Specify whether the replication relationship is a simple primary to replica or is an extended replication chain. The cmdlet resumes the replication of the virtual machines that have the replication type that you specify.
别名 |
Relationship |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Specifies that resynchronization is to be started for the virtual machine. Resynchronization requires significant storage, processor, and network resources. We recommend running this process during off-peak hours. Use the Set-VMReplication cmdlet to specify whether to automatically resynchronize the virtual machine in the future.
别名 |
Resync |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Specifies when resynchronization should start. If not specified, resynchronization starts immediately. You can schedule the resynchronization to start up to 7 days later.
别名 |
ResyncStart |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
Specifies the virtual machine whose replication is to be resumed.
别名 |
none |
是否必需? |
true |
在哪里? |
1 |
默认值 |
none |
是否接受管道输入? |
True (ByValue) |
是否接受通配符? |
false |
Specifies the name of the virtual machine whose replication is to be resumed.
别名 |
none |
是否必需? |
true |
在哪里? |
1 |
默认值 |
none |
是否接受管道输入? |
True (ByValue) |
是否接受通配符? |
false |
Specifies a virtual machine replication object representing the virtual machine replication to be resumed.
别名 |
none |
是否必需? |
true |
在哪里? |
1 |
默认值 |
none |
是否接受管道输入? |
True (ByValue) |
是否接受通配符? |
false |
在运行 cmdlet 前提示你进行确认。
是否必需? |
false |
在哪里? |
named |
默认值 |
false |
是否接受管道输入? |
false |
是否接受通配符? |
false |
显示在 cmdlet 运行时将发生的情况。该 cmdlet 不运行。
是否必需? |
false |
在哪里? |
named |
默认值 |
false |
是否接受管道输入? |
false |
是否接受通配符? |
false |
此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
输入类型是可以传送到 cmdlet 的对象的类型。
输出类型是 cmdlet 发出的对象的类型。
- None by default; VMReplication if –PassThru is specified.
This example resumes replication of virtual machine VM01.
PS C:\> Resume-VMReplication VM01
This example resynchronizes replication of virtual machine VM01.
PS C:\> Resume-VMReplication VM01 -Resynchronize
This example schedules the resynchronization of replication for virtual machine VM01 to start at 5:00 AM on August 1, 2012.
PS C:\> Resume-VMReplication VM01 –Resynchronize –ResynchronizeStartTime "8/1/2012 05:00 AM"
This example resumes replication of all virtual machines for which replication is paused.
PS C:\> Resume-Replication *