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

Get-VESPItemAttachment

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.

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

[For Veeam Backup for Microsoft Office 365] This example shows how to get attachments for the Documents SharePoint item.

  1. Run Get-VBOSharePointItemRestoreSession to get an active restore session. Save the result to the $session variable.
  2. Run Get-VESPOrganization with the $session variable and the Name parameter to get the ABC SharePoint organization. Save the result to the $organization variable.
  3. Run Get-VESPItem 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 Get-VESPItemAttachment with the $item variable to get the item attachments for the Documents SharePoint item.

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 "Documents"

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

Example 2

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

  1. Run Get-VBRSharePointItemRestoreSession to get an active restore session. Save the result to the $session variable.
  2. Run Get-VESPDatabase 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 Get-VESPItem 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 Get-VESPItemAttachment with the $item variable to get the item attachments for the Documents SharePoint item.

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

PS C:\PS> $database = Get-VESPDatabase -Session $session -Name "WSS_Content.mdf"

PS C:\PS> $item = Get-VESPItem -Database $database -Query "Documents"

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

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