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

Get-VESPItemAttachment

Short Description

Returns a specified SharePoint item attachment.

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.

True

0

True (ByValue)

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

This example shows how to get attachments for an item with a name "document.txt".

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

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

PS C:\PS> $organization = Get-VESPOrganization -Session $session -Name "ABC"

PS C:\PS> $item = Get-VESPItem -Organization $organization -Query "document.txt"

PS C:\PS> Get-VESPItemAttachment -Item $item

Veeam Large Logo

User Guide

RESTful API Reference

PowerShell Reference