This is an archive version of the document. To get the most up-to-date information, see the current version.

Restart-VBRInstantRecovery

Short Description

Restarts a failed Hyper-V Instant Recovery session.

Applies to

Platform: Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Restart-VBRInstantRecovery [-InstantRecovery] <InstantRecovery[]>  [<CommonParameters>]

Detailed Description

This cmdlet restarts a failed Hyper-V Instant Recovery session started with Start-VBRHvInstantRecovery.

Run Get-VBRInstantRecovery to get the status of the Instant Recovery session.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Instant
Recovery

Specifies the array of the instant recovery sessions. The cmdlet will restart these sessions.

True

1

True (ByValue,
ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Example 1

This command restarts the last instant recovery session. The needed session object is obtained with Get-VBRInstantRecovery, selected by order and piped down.

Get-VBRInstantRecovery | Select -Last 1 | Restart-VBRInstantRecovery

Example 2

This command restarts the instant recovery session represented by the $RecoverySession variable. The needed session object is obtained with Get-VBRInstantRecovery and assigned to the variable beforehand.

Restart-VBRInstantRecovery -InstantRecovery $RecoverySession

Related Commands

Get-VBRInstantRecovery