Start-VBRWindowsGuestItemRestore
Short Description
Starts restore of Microsoft Windows guest OS files and folders to the original or new location.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Path (Default)Start-VBRWindowsGuestItemRestore -Path <String[]> [-Session <CRestoreSession>] [-FileRestore <FileRestore>]
-RestorePolicy <VBRWindowsGuestItemRestorePolicy> [-GuestCredentials <CCredentials>] [-TargetViVm <CViVmItem>]
[-TargetVcdVm <CVcdVmItem>] [-TargetHvVm <CHvVmItem>] [-TargetAgentMachine <VBRDiscoveredComputer>]
[-TargetDirectory <String>] [-PermissionsOnly] [-ChangedItemsOnly] [-RunAsync]
[-ForceArchivedSnapshotsRestore] [<CommonParameters>]
-
ObjectStart-VBRWindowsGuestItemRestore -Item <VBRFLRFsItem[]> [-Session <CRestoreSession>]
[-FileRestore <FileRestore>] -RestorePolicy <VBRWindowsGuestItemRestorePolicy>
[-GuestCredentials <CCredentials>] [-TargetViVm <CViVmItem>] [-TargetVcdVm <CVcdVmItem>]
[-TargetHvVm <CHvVmItem>] [-TargetAgentMachine <VBRDiscoveredComputer>] [-TargetDirectory <String>]
[-PermissionsOnly] [-ChangedItemsOnly] [-RunAsync] [-ForceArchivedSnapshotsRestore] [<CommonParameters>]
Detailed Description
This cmdlet starts to restore Microsoft Windows guest OS files and folders to the original or new location.
Note |
|
To restore guest OS files, you need to start the restore session by running the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ChangedItemsOnly |
Defines whether to restore changed files and folders only. Before restoring changes, you must launch Note: This functionality is included in the Veeam Universal License. When using a legacy socket-based license, the Enterprise or Enterprise Plus editions of Veeam Backup & Replication are required. |
|
False |
Named |
False |
|
FileRestore |
Specifies a session of Microsoft Windows guest OS file restore. The cmdlet will use this session to restore guest OS files. Note: The restore session must be started within the current PowerShell session.
This parameter is required if the
Accepts the |
|
False |
Named |
False |
|
ForceArchivedSnapshotsRestore |
Defines that the cmdlet will use archive snapshots for restore without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
GuestCredentials |
Specifies credentials for the target machine. Note: If you do not specify credentials, the cmdlet will try to use the credentials from the current PowerShell session.
Accepts the |
|
False |
Named |
False |
|
Item |
Specifies an array of files and folders that you want to restore. The cmdlet will restore these files and folders.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Path |
Specifies an array of file paths to files and folders that you want to restore. Note: The parameter does not accept the mount server path. |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
PermissionsOnly |
Defines whether to restore only permissions of files and folders. Note: This functionality is included in the Veeam Universal License. When using a legacy socket-based license, the Enterprise or Enterprise Plus editions of Veeam Backup & Replication are required. |
|
False |
Named |
False |
|
RestorePolicy |
Specifies the file restore policy:
|
|
True |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Session |
Specifies a session of Microsoft Windows guest OS file restore. The cmdlet will use this session to restore guest OS files. Note: The restore session must be started within the current PowerShell session.
This parameter is required if the
Accepts the |
|
False |
Named |
False |
|
TargetAgentMachine |
For performing restore to a Veeam Agent computer. Specifies the target computer to which the cmdlet will restore guest OS files.
Accepts the |
False |
Named |
False |
|
|
TargetDirectory |
Specifies the path to a folder on the target VM to which you want to restore files. |
|
False |
Named |
False |
|
TargetHvVm |
For restoring files and folders from a backup of a Microsoft Hyper-V VM. Specifies a Microsoft Hyper-V VM (target VM) to which you want to restore files and folders.
Accepts the |
|
False |
Named |
False |
|
TargetVcdVm |
For restoring files and folders from a backup of a VMware Cloud Director VM. Specifies a VMware Cloud Director VM (target VM) to which you want to restore files and folders.
Accepts the |
|
False |
Named |
False |
|
TargetViVm |
For restoring files and folders from a backup of a VMware vSphere VM. Specifies a VMware vSphere VM (target VM) to which you want to restore files and folders.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Restoring Windows Guest OS File to Original Windows Machine
|
This example shows how to restore the
Perform the following steps:
|
Example 2. Restoring Windows Guest OS File to Another Server
|
This example shows how to restore the
Perform the following steps:
|
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Start-VBRWindowsFileRestoreStarts Windows VM guest OS file restore session.Get-VBRWindowsGuestItemReturns Microsoft Windows guest OS files.