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

Send-VEXItem

Short Description

Sends Exchange organization's backups via e-mail.

Syntax

Send-VEXItem [-Item] <VEXItem[]> [-From <string>] -To <string> [-Subject <string>] [-Body <string>]  [<CommonParameters>]

Detailed Description

This cmdlet sends Exchange organization's mailbox data as attachments to e-mails.

Send-VEXItem Note:

Before sending restored Exchange organization's mailbox data, check the following prerequisites:

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Item

Specifies Exchange organization's mailbox items that you want to send in the e-mail message.

True

0

True (ByValue)

False

From

Specifies the e-mail address from which Veeam Explorer for Microsoft Exchange will send restored mailbox data.

This e-mail address must have the rights to connect to SMTP server if SMTP server requires authentication.

If this parameter is omitted, Veeam Explorer for Microsoft Exchange will use the e-mail address, specified in SMTP settings. To learn more, see Set-VEXSmtpSettings.

False

Named

False

False

To

Specifies the e-mail address to which Veeam Explorer for Microsoft Exchange will send restored mailbox data.

True

Named

False

False

Subject

Specifies the subject of the e-mail message.

False

Named

False

False

Body

Specifies the body of the e-mail message.

False

Named

False

False

<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 send restored items from the Contacts folder in the e-mail message.

You will need to perform the following steps:

  1. Get items from the Contacts folder and save them to the $items 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. Save the result to the $mailbox variable.
  • Run Get-VEXFolder with the $mailbox variable and Name parameter to get the specific folder from the mailbox. Save the result to the $contacts variable.
  • Run Get-VEXitem with the $contacts variable to get the mailbox items. Save the result to the $items variable. Use Recurse parameter to get items from Contacts folder and its subfolders.
  1. Run Send-VEXItem with the $contacts variable to send all items from the Contacts folder.

PS C:\PS> $session = Get-VBOExchangeItemRestoreSession

PS C:\PS> $database = Get-VEXDatabase -Session $session

PS C:\PS> $mailbox = Get-VEXMailbox -Database $database -Name "sales"

PS C:\PS> $contacts = Get-VEXFolder -Mailbox $mailbox

PS C:\PS> $item = Get-VEXItem -Folder $contacts -Recurse

PS C:\PS> Send-VEXItem -Item $items -From admin.north@support.com -To sales.north@support.com -Subject "Sales Contacts" -Body "Please find attached "North Sales" Contacts"

Veeam Large Logo

User Guide

RESTful API Reference

PowerShell Reference