Connect-VBRWindowsGuestProductionMachine
Short Description
Connects to the machine where original files and folders reside.
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Connect-VBRWindowsGuestProductionMachine -FileRestore <FileRestore> [-GuestCredentials <CCredentials>] [<CommonParameters>] |
Detailed Description
Connects to the machine where original files and folders reside. You must launch this cmdlet before comparing files and folders using the Compare-VBRWindowsGuestItemsAttributesCompares attributes of files and folders from a backup with attributes of original files and folders. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
FileRestore |
Specifies a restore session of Microsoft Windows guest OS files. The cmdlet will use this session to restore guest OS files. Note: The restore session must be started within the current PowerShell session.
Accepts the |
|
True |
Named |
False |
|
GuestCredentials |
Specifies credentials for the original machine. Note: If you do not specify credentials, the cmdlet will try to use the credentials specified in the backup job that created the backup.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Connecting to Machine Where Files to Restore Reside
This example shows how to connect to a machine whose files you restore.
|
$backup = Get-VBRBackup -Name "WinSrv25" $restorepoint = Get-VBRRestorePoint -Backup $backup -Name "Production VM" $session = Start-VBRWindowsFileRestore -RestorePoint $restorepoint[1] Connect-VBRWindowsGuestProductionMachine -FileRestore $session |
Perform the following steps:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. 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.The
Get-VBRRestorePointcmdlet will return an array of restore points. Mind the ordinal number of the necessary restore point (in our example, it is the second restore session in the array). - 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
Connect-VBRWindowsGuestProductionMachinecmdlet. Set the$sessionvariable as theFileRestoreparameter value.
Related Commands
Start-VBRWindowsFileRestoreStarts Windows VM guest OS file restore session.Get-VBRCredentialsReturns credentials records.