Help Center
Choose product document...
Veeam Backup for Microsoft Office 365 3.0
PowerShell Reference

Test-VEXMailboxResolution

Short Description

Used to test the availability of the mailboxes in prior to a bulk mailbox restore.

Syntax

Test-VEXMailboxResolution [-Credential <pscredential>] [-Mailbox <VEXMailbox[]>] [-Office365Credential <pscredential>] [-Domain <string>] [-Force]  [<CommonParameters>]

Detailed Description

This cmdlet is used to test the availability of the mailboxes in prior to a bulk mailbox restore.

Test-VEXMailboxResolution Note:

This cmdlet requires a PSCredential object. Use Get-Credential to create the PSCredentials object.

For more information on Get-Credential, see https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.security/get-credential.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Domain

Specifies the mailbox domain.

False

Named

False

False

Force

Indicates that the cmdlet will ignore the certificated upon the connection.

False

Named

False

False

Mailbox

Specifies the mailbox.

False

Named

False

False

Office365Credential

Specifies Office 365 user credentials to connect to the backup proxy.

False

Named

False

False

Credential

Specifies Windows user credentials to connect to the backup proxy.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

[For Veeam Backup for Microsoft Office 365] This example shows how to test the availability of the $mailbox mailbox.

  1. Run Get-Credential to create a credential object. Type Windows credentials for connecting to the Veeam Backup for Microsoft Office 365 server. Save the result to the $credentials variable
  2. Run Get-VBOExchangeItemRestoreSession to get an active restore session. Save the result to the $session variable.
  3. Run Get-VEXDatabase with the $session variable to get a mailbox database. Save the result to the $database variable.
  4. Run Get-VEXMailbox with the $database variable and the Name parameter to get the specific mailbox from the mailbox database.
  5. Run Test-VEXMailboxResolution with the $mailboxes and $credentials variables.

$credentials = Get-Credential

$session = Get-VBOExchangeItemRestoreSession

$database = Get-VEXDatabase -Session $session

$mailboxes = Get-VEXMailbox -Database $database -Name "sales"

Test-VEXMailboxResolution -Mailbox $mailboxes -Domain test.local -Credential $credentials

Example 2

[For Veeam Backup & Replication] This example shows how to test the availability of the $mailbox mailbox.

  1. Run Get-Credential to create a credential object. Type Windows credentials for connecting to the Veeam Backup for Microsoft Office 365 server. Save the result to the $credentials variable
  2. Run Get-VBRExchangeItemRestoreSession to get an active restore session. Save the result to the $session variable.
  3. Run Get-VEXDatabase with the $session variable to get a mailbox database. Save the result to the $database variable.
  4. Run Get-VEXMailbox with the $database variable and the Name parameter to get the specific mailbox from the mailbox database.
  5. Run Test-VEXMailboxResolution with the $mailboxes and $credentials variables.

$credentials = Get-Credential

$session = Get-VBRExchangeItemRestoreSession

$database = Get-VEXDatabase -Session $session

$mailboxes = Get-VEXMailbox -Database $database -Name "sales"

Test-VEXMailboxResolution -Mailbox $mailboxes -Domain test.local -Credential $credentials

Related Commands

Veeam Large Logo

User Guide

RESTful API Reference

PowerShell Reference