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

Restart-VBRInstantRecovery

In this article

    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[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    Get-VBRInstantRecovery

    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 instant recovery session you want to restart.

    You can assign multiple instant recovery sessions to this object.

    True

    1

    True (ByValue,
    ByProperty
    Name)

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    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.

    PS C:\PS> Get-VBRInstantRecovery | Select -Last 1 | Restart-VBRInstantRecovery

    Example 2

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

    PS C:\PS> Restart-VBRInstantRecovery -InstantRecovery $"Recovery Session"