Get-VESPItemAttachment

In this article

    Short Description

    Returns a specified SharePoint item attachment.

    Applies to: Veeam Backup & Replication, Veeam Backup for Microsoft Office 365

    Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

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

    Detailed Description

    This cmdlet returns a specified SharePoint item attachment.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    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)

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.

    Examples

    Get-VESPItemAttachmentExample 1. Getting SharePoint Item Attachement [For Veeam Backup & Replication]

    This example shows how to get 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

    Perform the following steps:

    1. Get the SharePoint item:
    1. Run the Get-VBRSharePointItemRestoreSession cmdlet. Save the result to the $session variable.
    2. Run the Get-VESPDatabase cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Save the result to the $database variable.
    3. Run the Get-VESPItem cmdlet. Set the $database variable as the Database parameter value. Specify the Query parameter value. Save the result to the $item variable.
    1. Run the Get-VESPItemAttachment cmdlet. Set the $item variable as the Item parameter value.

    Get-VESPItemAttachmentExample 2. Getting SharePoint Item Attachement [For Veeam Backup for Microsoft Office 365]

    This example shows how to get 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

    Perform the following steps:

    1. Get the SharePoint item:
    1. Run the Get-VBOSharePointItemRestoreSession cmdlet. Save the result to the $session variable.
    2. Run the Get-VESPOrganization cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Save the result to the $organization variable.
    3. Run the Get-VESPItem cmdlet. Set the $organization variable as the Organization parameter value. Provide the Query parameter. Save the result to the $parentItem variable.
    1. Run the Get-VESPItemAttachment cmdlet. Set the $item variable as the Item parameter value.

    Related Commands

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.