Get-VEXDatabase
Short Description
Returns Microsoft Exchange mailbox databases.
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
Get-VEXDatabase -Session <VBOExchangeRestoreSession> [-Name <string[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns Microsoft Exchange mailbox databases. You can use these databases to perform operations with Microsoft Exchange objects by running the following cmdlets:
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input | Accept Wildcard Characters |
Session | Specifies an active restore session. The cmdlet will return an array of Microsoft Exchange mailbox databases within the specified restore session. | Accepts the VBOExchangeRestoreSession object. To get this object, run the Get-VBOExchangeItemRestoreSession cmdlet. | True | 0 | True (ByValue) | False |
Name | [For Veeam Backup & Replication] Specifies a name of a Microsoft Exchange mailbox database. The cmdlet will return an array of Microsoft Exchange mailbox databases with this name. [For Veeam Backup for Microsoft Office 365] Specifies a name of a Microsoft Exchange organization. The cmdlet will return an array of Microsoft Exchange organizations with this name. | String[] | False | 1 | False | True |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Examples
- Getting Microsoft Exchange Databases Within Specified Restore Session
- Getting Microsoft Exchange Database With Specified Name
- Getting Microsoft Exchange Databases Within Specified Restore Session
- Getting Microsoft Exchange Database With Specified Name
Applied to Veeam Backup & Replication
Example 1. Getting Microsoft Exchange Databases Within Specified Restore Session
This example shows how to get a list of Microsoft Exchange databases within the specified restore session.
$session = Get-VBRExchangeItemRestoreSession Get-VEXDatabase -Session $session |
You must perform the following steps:
- Run the Get-VBRExchangeItemRestoreSession cmdlet. Save the result to the $session variable.
The Get-VESQLRestoreSession cmdlet will return an array of active restore sessions. Mind the ordinal number of the necessary restore session (in our example, it is the second restore session in the array).
- Run the Get-VEXDatabase cmdlet. Set the $session variable as the Session parameter value.
Example 2. Getting Microsoft Exchange Database With Specified Name
This example shows how to get a specific mailbox database for exploring and restoring mailbox items.
$session = Get-VBRExchangeItemRestoreSession Get-VEXDatabase -Session $session -Name "Mailbox Database 0754907780.edb" |
You must perform the following steps:
- Run the Get-VBRExchangeItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
- Run the Get-VEXDatabase cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value.
Applied to Veeam Backup for Microsoft Office 365
Example 1. Getting Microsoft Exchange Databases Within Specified Restore Session
This example shows how to get mailbox databases for exploring and restoring mailbox items.
$session = Get-VBOExchangeItemRestoreSession Get-VEXDatabase -Session $session |
You must perform the following steps:
- Run the Get-VBOExchangeItemRestoreSession cmdlet. Save the result to the $session variable.
- Run the Get-VEXDatabase cmdlet. Set the $session variable as the Session parameter value.
Example 2. Getting Microsoft Exchange Database With Specified Name
This example shows how to get a specific mailbox databases for exploring and restoring mailbox items.
$session = Get-VBOExchangeItemRestoreSession Get-VEXDatabase -Session $session -Name support3backup.onmicrosoft.com |
You must perform the following steps:
- Run the Get-VBOExchangeItemRestoreSession cmdlet. Save the result to the $session variable.
- Run the Get-VEXDatabase cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value.
Related Commands