New-VBREntraIDUserCredentials
Short Description
Defines an object that matches a Microsoft Entra ID user and a password.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBREntraIDUserCredentials -UserId <String> -Password <SecureString> [<CommonParameters>] |
Detailed Description
This cmdlet defines an object that matches an Entra ID user and a password. This object is used for the user restore using the Restore-VBREntraIDTenantItemRestores a Microsoft Entra ID item. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Password |
Specifies a password. |
|
True |
Named |
False |
|
UserId |
Specifies the ID of a user to whom you want to assign the password during further restore. |
|
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 VBREntraIDUserCredentials object that matches an Entra ID user and a password.
Examples
Matching Entra ID User with Password
This example shows how to match a user with a password.
|
$session = Get-VBREntraIDTenantRestoreSession -Id "901e32ac-4c9e-4f7a-9b36-a4fd0f7248fe" $user = Get-VBREntraIDTenantItem -Backup $backup -Type User -Name "admin" $passwords = (Generate-VBREntraIDTenantUserPassword -Session $session -PasswordCount 3) | ConvertTo-SecureString -AsPlainText -Force $userPassword = New-VBREntraIDUserCredentials -UserId $user.Id -Password $passwords[0] |
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$sessionvariable. - Run the
Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains. cmdlet. Specify the following settings:- Set the
$backupvariable as theBackupparameter value. - Specify the
TypeandNameparameter values. - Save the result to the
$sessionvariable.
- Set the
- Run the
Generate-VBREntraIDTenantUserPasswordCreates passwords. cmdlet. Specify the following settings:- Set the
$sessionvariable as theSessionparameter value. - Specify the
PasswordCountparameter value. - Convert the result to a secure string.
- Save the result to the
$passwordsvariable.
- Set the
- Run the
New-VBREntraIDUserCredentialscmdlet. Specify the following settings:- Set the
$user.Idvariable as theUserIdparameter value. - Set the
$passwords[0]variable as thePasswordparameter value. - Save the result to the
$userPasswordvariable.
- Set the
Related Commands
Get-VBREntraIDTenantRestoreSessionReturns restore sessions started to recover Microsoft Entra ID tenant backups.Get-VBREntraIDTenantItemReturns Microsoft Entra ID items that a backup contains.Generate-VBREntraIDTenantUserPasswordCreates passwords.