Get-VBREntraIDTenantItemRestoreSession
Short Description
Returns a restore session launched for the item or attribute restore.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBREntraIDTenantItemRestoreSession -Id <Guid> -ParentSession <VBREntraIDTenantRestoreSession> [<CommonParameters>] |
Detailed Description
This cmdlet returns a restore session launched for the item or attribute restore.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Id |
Specifies the ID of the session that you want to get. |
|
True |
Named |
False |
|
ParentSession |
Specifies the parent restore session that was launched to start restore.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBREntraIDTenantItemRestoreSession object that contains settings of an item or attribute restore session.
Examples
Getting Item Restore Session
This example shows how to get an item restore session.
|
$tenantRestoreSession = Get-VBREntraIDTenantRestoreSession -Id "901e32ac-4c9e-4f7a-9b36-a4fd0f7248fe" $backup = Get-VBREntraIDTenantBackup -Name "Tenant backup" $restorePoint = Get-VBREntraIDTenantRestorePoint -Backup $backup -Id "a66808bc-780e-46f2-8538-63ace3c8f9be" $item = Get-VBREntraIDTenantItem -Backup $backup -Type User -Name "Test Admin" $defaultPsswd = Read-Host -Prompt "Enter password" -AsSecureString $itemRestoreSessionId = Restore-VBREntraIDTenantItem -Session $tenantRestoreSession -Items $item -RestorePoint $restorePoint -DefaultUserPassword $defaultPsswd $session = Get-VBREntraIDTenantItemRestoreSession -Id $itemRestoreSessionId -ParentSession $tenantRestoreSession |
Perform the following steps:
- Run the
Get-VBREntraIDTenantRestoreSessionReturns restore sessions started to recover Microsoft Entra ID tenant backups. cmdlet. Specify theIdparameter value. Save the result to the$tenantRestoreSessionvariable. - Run the
Get-VBREntraIDTenantBackupReturns backups of Microsoft Entra ID tenants. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBREntraIDTenantRestorePointReturns restore points of a Microsoft Entra ID tenant backup. cmdlet. Set the$backupvariable as theBackupparameter value. Specify theIdparameter value. Save the result to the$restorePointvariable. - Run the
Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains. cmdlet. Set the$backupvariable as theBackupparameter value. Specify theTypeandNameparameter value. Save the result to the$itemvariable. - Create the
$defaultPsswdvariable. Use theRead-Hostcmdlet to get the application secret and convert it to a secure string. - Run the
Restore-VBREntraIDTenantItemRestores a Microsoft Entra ID item. cmdlet. Specify the following settings:- Set the
$tenantRestoreSessionvariable as theSessionparameter value. - Set the
$itemvariable as theItemsparameter value. - Set the
$restorePointvariable as theRestorePointparameter value. - Set the
$defaultPsswdvariable as theDefaultUserPasswordparameter value. - Save the result to the
$itemRestoreSessionIdvariable.
- Set the
- Run the
Get-VBREntraIDTenantItemRestoreSessioncmdlet. Specify the following settings:- Set the
$itemRestoreSessionIdvariable as theIdparameter value. - Set the
$tenantRestoreSessionvariable as theParentSessionparameter value. - Save the result to the
$sessionvariable.
- Set the
Related Commands
Get-VBREntraIDTenantRestoreSessionReturns restore sessions started to recover Microsoft Entra ID tenant backups.Get-VBREntraIDTenantBackupReturns backups of Microsoft Entra ID tenants.Get-VBREntraIDTenantRestorePointReturns restore points of a Microsoft Entra ID tenant backup.Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains.Restore-VBREntraIDTenantItemRestores a Microsoft Entra ID item.