Short Description
Returns a mailbox database.
Syntax
Get-VEXDatabase [-Session] <VBOExchangeRestoreSession> [[-Name] <string[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns mailbox database that you want to use for restoring mailboxes, folders or items.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Session | Specifies an active restore session with the mailbox database state. | True | 0 | True (ByValue) | False |
Name | Specifies the name of the mailbox database. Mailbox database name is the name of the corresponding organization. | False | 1 | False | True |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This example shows how to get mailbox databases for exploring and restoring mailbox items.
You will need to perform the following steps:
- Run Get-VBOExchangeItemRestoreSession to get the active restore session. Save the result to the $session variable.
- Run Get-VEXDatabase with the $session variable.
PS C:\PS> $session = Get-VBOExchangeItemRestoreSession PS C:\PS> Get-VEXDatabase -Session $session |
Example 2
This example shows how to get a specific mailbox database for exploring and restoring mailbox items.
You will need to perform the following steps:
- Run Get-VBOExchangeItemRestoreSession to get the active restore session. Save the result to the $session variable.
- Run Get-VEXDatabase with the $session variable. Use Name parameter to specify the name of the mailbox database.
PS C:\PS> $session = Get-VBOExchangeItemRestoreSession PS C:\PS> Get-VEXDatabase -Session $session -Name support3backup.onmicrosoft.com |
Related Commands
Get-VBOExchangeItemRestoreSession