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

Get-VESPItemAttachment

In this article

    Short Description

    Returns a specified SharePoint item attachment.

    Applies to

    Product Edition: Community, Standard, Enterprise, Enterprise Plus

    Syntax

    Get-VESPItemAttachment [-Item] <VESPItem>  [<CommonParameters>]

    Detailed Description

    This cmdlet returns a specified SharePoint item attachment.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Item

    Specifies a SharePoint item. This cmdlet will return an item attachment for the specified item.

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

    True

    0

    True (ByValue)

    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 get attachments for the Documents SharePoint item.

    1. Run the Get-VBOSharePointItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
    2. Run the Get-VESPOrganization cmdlet with the $session variable and the Name parameter to get the ABC SharePoint organization. Save the result to the $organization variable.
    3. Run the Get-VESPItem cmdlet with the $organization variable and enter the Documents value for the Query parameter to get the Documents SharePoint item. Save the result to the $item variable.
    4. Run the Get-VESPItemAttachment cmdlet with the $item variable to get the item attachments for the Documents SharePoint item.

    $session = Get-VBOSharePointItemRestoreSession

    $organization = Get-VESPOrganization -Session $session -Name "ABC"

    $item = Get-VESPItem -Organization $organization -Query "Documents"

    Get-VESPItemAttachment -Item $item

    Example 2

    [For Veeam Backup & Replication] This example shows how to get attachments for the Documents SharePoint item.

    1. Run the Get-VBRSharePointItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
    2. Run the Get-VESPDatabase cmdlet with the $session variable and the Name parameter to get the WSS_Content.mdf SharePoint database. Save the result to the $database variable.
    3. Run the Get-VESPItem cmdlet with the $database variable and enter the Documents value for the Query parameter to get the Documents SharePoint item. Save the result to the $item variable.
    4. Run the Get-VESPItemAttachment cmdlet with the $item variable to get the item attachments for the Documents SharePoint item.

    $session = Get-VBRSharePointItemRestoreSession

    $database = Get-VESPDatabase -Session $session -Name "WSS_Content.mdf"

    $item = Get-VESPItem -Database $database -Query "Documents"

    Get-VESPItemAttachment -Item $item

    Related Commands