Start-VBRHvRestoreVM
Short Description
Starts restore of an entire Hyper-V VM.
Platform: Hyper-V
For VMware, run the Start-VBRRestoreVMStarts restore of the entire VMware VM. cmdlet.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
AllParameterSets (Default)Start-VBRHvRestoreVM [-RestorePoint] <COib> [-Server <CHost>] [-Path <String>] [-VMName <String>]
[-PreserveVmID <Boolean>] [-PowerUp] [-RegisterAsClusterResource] [-NICsEnabled <Boolean>]
[-PreserveMACs <Boolean>] [-User <String>] [-Password <String>] [-Credential <PSCredential>]
[-Reason <String>] [-RunAsync] [-QuickRollback] [-Force] [-EnableAntivirusScan] [-EnableYARAScan]
[-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>]
[-NetworkMapping <VBRHvInstantRecoveryNetworkMappingRule[]>] [<CommonParameters>]
-
StagedRestoreStart-VBRHvRestoreVM [-RestorePoint] <COib> [-Server <CHost>] [-Path <String>] [-VMName <String>]
[-PreserveVmID <Boolean>] [-PowerUp] [-RegisterAsClusterResource] [-NICsEnabled <Boolean>]
[-PreserveMACs <Boolean>] [-User <String>] [-Password <String>] [-Credential <PSCredential>]
[-Reason <String>] [-RunAsync] [-QuickRollback] [-Force] [-EnableStagedRestore]
-StagingVirtualLab <CHvSbVirtualLab> -StagingScript <String> -StagingCredentials <CInternalCredentials>
[-StagingApplicationGroup <CSbAppGroup>] [-StagingStartupOptions <VBRApplicationGroupStartupOptions>]
[-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan]
[-VirusDetectionAction <VBRVirusDetectionAction>] [-NetworkMapping <VBRHvInstantRecoveryNetworkMappingRule[]>] [<CommonParameters>]
Detailed Description
This cmdlet starts the restore of an entire Hyper-V VM. With this cmdlet, you can perform the following recover scenarios:
- Restore to original location
- Restore to original location with different settings
- Restore to another location
- Staged restore
- Secure restore
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credential |
Specifies the credentials you want to use to access a backup file imported from a shared folder.
Note: If you provide this parameter, you must omit the
Accepts the |
|
False |
Named |
False |
|
EnableAntivirusScan |
Defines that the cmdlet will perform secure restore. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Enables the option to continue antivirus scan of the VMs after the first virus threat is found. Use this option if you want to get the report on all virus threats. |
|
False |
Named |
False |
|
EnableStagedRestore |
For staged restore. Defines that the cmdlet will perform staged restore. If you do not provide this parameter, the cmdlet will not perform staged restore. |
|
True |
Named |
False |
|
EnableYARAScan |
Enables the YARA scan for the selected VMs.
Use the |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will perform VM restore even if the geographic location of the repository where VM backups reside and the target host location do not match. |
|
False |
Named |
False |
|
NetworkMapping |
Specifies an array of network mapping rules. These rules specify how to map networks in the original site with networks in the target site (where the recovered VM will reside). Note: This parameter applies if you perform instant recovery of Veeam Agent computers.
Accepts the |
False |
Named |
False |
|
|
NICsEnabled |
Defines that the restored VM will be connected to the network. If you do not provide this parameter, the VM will have no network connections.
Default: |
|
False |
Named |
False |
|
Password |
Specifies the password you want to use to access a backup file imported from a shared folder.
Note: If you provide the |
|
False |
Named |
False |
|
Path |
Specifies the path to the folder where you want to restore the VM. |
|
False |
Named |
False |
|
PowerUp |
Defines that the restored VM will be powered up immediately after the restore. If you do not provide this parameter, you will have to power up the VM manually. |
|
False |
Named |
False |
|
PreserveMACs |
Defines that the restored VM will get the MAC address of the original VM. If you do not provide this parameter, the restored VM will get a new MAC address. Note: If the original VM keeps running, preserving the MAC address will cause conflict. Preserving the MAC address is useful in case the original VM will not be used in future — in this case, the restored VM will be able to use the MAC settings used by its applications, if any are installed.
Default: |
|
False |
Named |
False |
|
PreserveVmID |
Defines whether the restored VM will get the UUID of the original VM. Note: The cmdlet deletes the original VM if you restore it to the same Hyper-V host. This is done to avoid UUID conflicts. To keep both VMs in the same location, the restored VM must have a new UUID and a different name. To generate a new UUID, set this parameter to False.
|
|
False |
Named |
False |
|
QuickRollback |
For restore to original location. Defines that the incremental restore must be performed. |
|
False |
Named |
False |
|
Reason |
Specifies a reason of restoring the selected VM. The information you provide will be saved in the session history so that you can reference it later. |
|
False |
Named |
False |
|
RegisterAsClusterResource |
Defines that the restored VM will be registered as a part of a cluster in case you restore the VM to a clustered host. |
|
False |
Named |
False |
|
RestorePoint |
Specifies the restore point to which you want to restore VMs.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies the host where you want to locate the restored VM. By default, the cmdlet will restore a VM to its original location. Note: This parameter is required for the staged restore jobs.
Accepts the |
|
False |
Named |
False |
|
StagingApplicationGroup |
For staged restore. Specifies the application group that the cmdlet will use for staged restore.
Accepts the |
|
False |
Named |
False |
|
StagingCredentials |
For staged restore. Specifies the credentials for the account that has administrator privileges on VMs that you want to restore. The cmdlet will use these credentials to authenticate against VMs and run the script.
Accepts the |
|
True |
Named |
False |
|
StagingScript |
For staged restore. Specifies the script location. Veeam Backup & Replication will use this script to prepare VMs before the restore. |
|
True |
Named |
False |
|
StagingStartupOptions |
For staged restore. Specifies startup settings of VMs that you want to restore. Veeam Backup & Replication will use these settings to start selected VMs after recovery.
Accepts the |
|
False |
Named |
False |
|
StagingVirtualLab |
For staged restore. Specifies the virtual lab. The cmdlet will use this virtual lab to start VMs and run the script.
Accepts the |
|
True |
Named |
False |
|
User |
Specifies the user name you want to use to access a backup file imported from a shared folder.
Note: If you provide the |
|
False |
Named |
False |
|
VirusDetectionAction |
For secure restore. Specifies the secure restore action when the infection is detected.
|
|
False |
Named |
False |
|
VMName |
Specifies the name you want to apply to the restored VM. By default, the original VM name is applied. |
|
False |
Named |
False |
|
YARAScanRule |
Specifies the YARA rule. Veeam Backup & Replication will scan VMs with this rule.
Veeam Backup & Replication searches for YARA rules in the
To use a YARA rule, you must specify its name and extension. Veeam Backup & Replication accepts only |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Restoring Entire Hyper-V VM to Original Location
|
This example shows how to restore the Note: If the original VM still exists in the virtual infrastructure, its disks will be removed. Make sure that other VMs in the virtual environment do not use these disks.
Perform the following steps:
|
Example 2. Cloning Hyper-V VM to Original Location
|
This example shows how to clone the Note: To keep the original VM and the cloned VM in the same location, you must specify a different name, UUID and a path to the folder where you want to keep the cloned VM. Otherwise, the cmdlet will replace the original VM with the cloned one.
Perform the following steps:
|
Example 3. Restoring Hyper-V VM to Another Location
|
This example shows how to restore the
Perform the following steps:
|
Example 4. Performing Staged Restore of Hyper-V VM
|
This example shows how to perform staged restore for the
Perform the following steps:
|
Example 5. Performing Secure Restore of Hyper-V VM
|
This example shows how to perform secure restore of the
You must perform the following steps:
|
Related Commands
Get-VBRRestorePointReturns restore points.Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.Get-VSBHvVirtualLabReturns Hyper-V virtual labs. This cmdlet is obsolete. The cmdlet will still work but may not be supported in further versions.Get-VBRCredentialsReturns credentials records.