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.

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

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