Help Center
Choose product document...
Veeam Backup & Replication 9.5 Update 4
Veeam Explorers PowerShell Reference

Send-VEXItem

Short Description

Sends data of Exchange organization mailboxes as attachments to e-mails.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

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

Detailed Description

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

Send-VEXItem Note:

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

  • You must specify Veeam Explorer for Microsoft Exchange SMTP settings. For more information on how to specify SMTP settings, see Set-VEXSmtpSettings.
  • You must start a restore session. For more information on how to start a restore session, see Start-VBOExchangeItemRestoreSession.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Item

Specifies items of Exchange organization mailbox. The cmdlet will send these items 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 an SMTP server if the 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 an e-mail address to which Veeam Explorer for Microsoft Exchange will send restored mailbox data.

True

Named

False

False

Subject

Specifies a subject of an e-mail message.

False

Named

False

False

Body

Specifies a body of an 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 1

[For Veeam Backup for Microsoft Office 365] This example shows how to send restored items from the Contacts folder in an e-mail message.

  1. Get items from the Contacts folder:
  1. Run Get-VBOExchangeItemRestoreSession to get an active restore session. Save the result to the $session variable.
  2. Run Get-VEXDatabase with the $session variable to get a mailbox database. Save the result to the $database variable.
  3. 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.
  4. Run Get-VEXFolder with the $mailbox variable and the Name parameter to get the specific folder from the mailbox. Save the result to the $contacts variable.
  5. Run Get-VEXitem with the $contacts variable to get the mailbox items. Save the result to the $items variable. Use the Recurse parameter to get items from the 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"

Example 2

[For Veeam Backup & Replication] This example shows how to send restored items from the Contacts folder in an e-mail message.

  1. Get items from the Contacts folder:
  1. Run Get-VBRExchangeItemRestoreSession to get an active restore session. Save the result to the $session variable.
  2. Run Get-VEXDatabase with the $session variable and the Name parameter to get the Mailbox Database 0754907780.edb database. Save the result to the $database variable.
  3. Run Get-VEXMailbox with the $database variable and the Name parameter to get the specific mailbox from the mailbox database. Save the result to the $mailbox variable.
  4. Run Get-VEXFolder with the $mailbox variable and the Name parameter to get the specific folder from the mailbox. Save the result to the $contacts variable.
  5. Run Get-VEXitem with the $contacts variable to get the mailbox items. Save the result to the $items variable. Use the Recurse parameter to get items from the 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-VBRExchangeItemRestoreSession

PS C:\PS> $database = Get-VEXDatabase -Session $session -Name “Mailbox Database 0754907780.edb”

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"

Related Commands

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Explorers User Guide

Backup and Restore of SQL Server Databases

Veeam Plug-ins for Enterprise Applications

PowerShell Reference

Veeam Explorers PowerShell Reference

RESTful API Reference

Required Permissions

Veeam Availability for Nutanix AHV

Veeam Backup for Microsoft Office 365 Documentation

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation