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

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 FileRestore object. To create this object, run the Start-VBRWindowsFileRestoreStarts Windows VM guest OS file restore session. cmdlet.

FileRestore

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 CCredentials object. To get this object, run the Get-VBRCredentialsReturns credentials records. cmdlet.

CCredentials

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:

  1. Run the Get-VBRBackupReturns backups. cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
  2. Run the Get-VBRRestorePointReturns restore points. cmdlet. Set the $backup variable as the Backup parameter value. Specify the Name parameter value. Save the result to the $restorepoint variable.

    The Get-VBRRestorePoint cmdlet 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).

  3. Run the Start-VBRWindowsFileRestoreStarts Windows VM guest OS file restore session. cmdlet. Set the $restorepoint variable as the RestorePoint parameter value. Save the result to the $session variable.
  4. Run the Connect-VBRWindowsGuestProductionMachine cmdlet. Set the $session variable as the FileRestore parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18