--- title: "Generate-VBREntraIDTenantUserPassword" description: "This cmdlet creates passwords that can further be used for the Entra ID restore session." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/generate-vbrentraidtenantuserpassword.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Microsoft EntraID Support > Item Data Recovery > Generate-VBREntraIDTenantUserPassword" dateModified: "2026-08-19" --- # Generate-VBREntraIDTenantUserPassword ## Short Description Creates passwords. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Generate-VBREntraIDTenantUserPassword -Session -PasswordCount [] ``` ## Detailed Description This cmdlet creates passwords that can further be used for the Entra ID restore session. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

PasswordCount

Specifies how many passwords to generate.

Int32

True

Named

False

Session

Specifies the restore session for which you want to create passwords.

Accepts the VBREntraIDTenantRestoreSession object. To create this object, run the Start-VBREntraIDTenantRestore cmdlet.

VBREntraIDTenantRestoreSession

True

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the `String[]` object that contains the generated passwords. ## Examples ::: example ### Generating Passwords for Entra ID Restore Session This example shows how to generate 3 passwords. ``` $session = Get-VBREntraIDTenantRestoreSession -Id "901e32ac-4c9e-4f7a-9b36-a4fd0f7248fe" $passwords = Generate-VBREntraIDTenantUserPassword -Session $session -PasswordCount 3 ``` Perform the following steps: 1. Run the [`Get-VBREntraIDTenantRestoreSession`](get-vbrentraidtenantrestoresession.md) cmdlet. Specify the `Id` parameter value. Save the result to the `$session` variable. 2. Run the `Generate-VBREntraIDTenantUserPassword` cmdlet. Specify the following settings: - Set the `$session` variable as the `Session` parameter value. - Specify the `PasswordCount` parameter value. - Save the result to the `$restorePoint` variable. ::: ## Related Commands [`Get-VBREntraIDTenantRestoreSession`](get-vbrentraidtenantrestoresession.md)