--- title: "Get-VEXMailbox" description: "Returns Microsoft Exchange mailboxes. Product: Veeam Backup & Replication, Veeam Backup for Microsoft 365 Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet returns an array of Microsoft Exchang" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/get-vexmailbox.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft Exchange > Get-VEXMailbox" dateModified: "2026-08-18" --- # Get-VEXMailbox ## Short Description Returns Microsoft Exchange mailboxes. **Product**: Veeam Backup & Replication, Veeam Backup for Microsoft 365 **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VEXMailbox [-Database] [[-Name] ] [] ``` ## Detailed Description This cmdlet returns an array of Microsoft Exchange mailboxes from the specified mailbox database. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Database

Specifies a Microsoft Exchange mailbox database. The cmdlet will return an array of mailboxes from this mailbox database.

Accepts the VEXDatabase object. To get this object, run the Get-VEXDatabase cmdlet.

VEXDatabase

True

0

True (ByValue)

Name

Specifies an array of Microsoft Exchange mailbox names. The cmdlet will return an array of mailboxes with these names.

This parameter accepts wildcard characters.

String[]

False

1

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Output Object The cmdlet returns the [`VEXMailbox`](vexmailbox.md)`[]` array that contains Microsoft Exchange mailboxes. ## Examples ::: example ### Example 1. Getting Specific Mailbox [For Veeam Backup & Replication] This example shows how to get the `Sales` mailbox backed up on the Veeam Backup & Replication server. ``` $session = Get-VBRExchangeItemRestoreSession $database = Get-VEXDatabase -Session $session -Name "DB_0754907780.edb" Get-VEXMailbox -Database $database -Name "Sales" ``` Perform the following steps: 1. Run the [`Get-VBRExchangeItemRestoreSession`](get-vbrexchangeitemrestoresession.md). Save the result to the `$session` variable. 2. Run the [`Get-VEXDatabase`](get-vexdatabase.md) cmdlet. Set the `$session` variable as the `Session` parameter value. Specify the `Name` parameter value. Save the result to the `$database` variable. 3. Run the `Get-VEXMailbox` cmdlet. Set the `$database` variable as the `Database` parameter value. Specify the `Name` parameter value. ::: ::: example ### Example 2. Getting Specific Mailbox [For Veeam Backup for Microsoft 365] This example shows how to get the `Sales` mailbox backed up on the Veeam Backup for Microsoft 365 server. ``` $session = Get-VBOExchangeItemRestoreSession $database = Get-VEXDatabase -Session $session -Name "support3backup*" Get-VEXMailbox -Database $database -Name "Sales" ``` Perform the following steps: 1. Run the [`Get-VBOExchangeItemRestoreSession`](get-vboexchangeitemrestoresession.md) cmdlet. Save the result to the `$session` variable. 2. Run the [`Get-VEXDatabase`](get-vexdatabase.md) cmdlet. Set the `$session` variable as the `Session` parameter value. Specify the `Name` parameter value. Use the * wildcard character to substitute the timestamp. Save the result to the `$database` variable. 3. Run the `Get-VEXMailbox` cmdlet. Set the `$database` variable as the `Database` parameter value. Specify the `Name` parameter value. ::: ## Related Commands - [`Get-VBOExchangeItemRestoreSession`](get-vboexchangeitemrestoresession.md) - [`Get-VBRExchangeItemRestoreSession`](get-vbrexchangeitemrestoresession.md) - [`Get-VEXDatabase`](get-vexdatabase.md)