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 | Accept |
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.
- Run the Get-VBOSharePointItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
- 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.
- 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.
- 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.
- Run the Get-VBRSharePointItemRestoreSession cmdlet to get an active restore session. Save the result to the $session variable.
- 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.
- 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.
- 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