This is an archive version of the document. To get the most up-to-date information, see the current version.

Send-VEXItem

In this article

    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.

    Accepts the VEXItem[] type. To get this object, run the Get-VEXItem cmdlet.

    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 on common parameters, see the About CommonParameters section of Microsoft Docs.

    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 the Get-VBOExchangeItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
    2. Run the Get-VEXDatabase cmdlet with the $session variable to get a mailbox database. Save the result to the $database variable.
    3. Run the Get-VEXMailbox cmdlet 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 the Get-VEXFolder cmdlet 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 the Get-VEXitem cmdlet 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 the Send-VEXItem cmdlet with the $contacts variable to send all items from the Contacts folder.

    $session = Get-VBOExchangeItemRestoreSession

    $database = Get-VEXDatabase -Session $session

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

    $contacts = Get-VEXFolder -Mailbox $mailbox

    $item = Get-VEXItem -Folder $contacts -Recurse

    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 the Get-VBRExchangeItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
    2. Run the Get-VEXDatabase cmdlet 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 the Get-VEXMailbox cmdlet 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 the Get-VEXFolder cmdlet 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 the Get-VEXitem cmdlet 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 the Send-VEXItem with the $contacts variable to send all items from the Contacts folder.

    $session = Get-VBRExchangeItemRestoreSession

    $database = Get-VEXDatabase -Session $session -Name “Mailbox Database 0754907780.edb”

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

    $contacts = Get-VEXFolder -Mailbox $mailbox

    $item = Get-VEXItem -Folder $contacts -Recurse

    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