Stop-VBRWindowsGuestItemRestore
Short Description
Stops Windows guest OS file restore session initiated with the Start-VBRWindowsGuestItemRestoreStarts restore of Microsoft Windows guest OS files and folders to the original or new location. cmdlet.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VBRWindowsGuestItemRestore -ItemSession <VBRItemSession> [<CommonParameters>] |
Detailed Description
Stops Windows guest OS file restore session initiated with the Start-VBRWindowsGuestItemRestoreStarts restore of Microsoft Windows guest OS files and folders to the original or new location. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ItemSession |
Specifies the running Windows guest OS file restore session that you want to stop.
Accepts the |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Stopping Restore Session for Windows VM Guest OS Files
This example shows how to stop a restore session for Windows VM guest OS files. During the session, files are restored to the specified folder.
|
$backup = Get-VBRBackup $restorepoint = Get-VBRRestorePoint -Backup $backup -Name "Production VM" $session = Start-VBRWindowsFileRestore -RestorePoint $restorepoint $restoresession = Start-VBRWindowsGuestItemRestore -Path "C:\Files\" -FileRestore $session -RestorePolicy Keep -RunAsync Stop-VBRWindowsGuestItemRestore -ItemSession $restoresession |
Perform the following steps:
- Run the
Get-VBRBackupReturns backups. cmdlet. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Set the$backupvariable as theBackupparameter value. Specify theNameparameter value. Save the result to the$restorepointvariable. - Run the
Start-VBRWindowsFileRestoreStarts Windows VM guest OS file restore session. cmdlet. Set the$restorepointvariable as theRestorePointparameter value. Save the result to the$sessionvariable. - Run the
Start-VBRWindowsGuestItemRestoreStarts restore of Microsoft Windows guest OS files and folders to the original or new location. cmdlet. Save the result to the$restoresessionvariable. Specify the following settings:- Specify the
Pathparameter value. - Set the
$sessionvariable as theFileRestoreparameter value. - Set the
Keepoption for theRestorePolicyparameter. - Provide the
RunAsyncparameter.
- Specify the
- Run the
Stop-VBRWindowsGuestItemRestorecmdlet. Set the$restoresessionvariable as theItemSessionparameter value.