Short Description
Returns mailboxes.
Syntax
Get-VEXMailbox [-Database] <VEXDatabase> [[-Name] <string[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns mailboxes from the specified mailbox database.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Database | Specifies the mailbox database. The cmdlet will return all mailboxes from this mailbox database. | True | 0 | True (ByValue) | False |
Name | Specifies the name of the mailbox. The cmdlet will return the mailbox with this name. | 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
This example shows how to get the mailbox with the name "sales".
You will need to perform the following steps:
- Get the mailbox database and save it to the $database variable:
- Run Get-VBOExchangeItemRestoreSession to get the active restore session. Save the result to the $session variable.
- Run Get-VEXDatabase with the $session variable to get the mailbox database. Save the result to the $database variable.
- Run Get-VEXMailbox with the $database variable and Name parameter to get the specific mailbox from the mailbox database.
PS C:\PS> $session = Get-VBOExchangeItemRestoreSession PS C:\PS> $database = Get-VEXDatabase -Session $session PS C:\PS> Get-VEXMailbox -Database $database -Name "sales" |
Related Commands
Get-VBOExchangeItemRestoreSession