This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VESPDocument

Short Description

Returns SharePoint documents.

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

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

This cmdlet provides parameter sets that allow you to:

  • Get documents from a specified SharePoint site.

Get-VESPDocument [-Site] <VESPSite> [-Query <string>]  [<CommonParameters>]

  • Get documents from a specified SharePoint document library.

Get-VESPDocument [-DocumentLibrary] <VESPDocumentLibrary> [-Query <string>] [-Recurse]  [<CommonParameters>]

  • Get children of a specified SharePoint document item.

Get-VESPDocument [-ParentDocument] <VESPDocument> [-Query <String>] [-Recurse [<SwitchParameter>]  [<CommonParameters>]

  • Get documents from a specified SharePoint organization.

Get-VESPDocument [-Organization] <VESPOrganization[]> [-Query <string>]  [<CommonParameters>]

  • Get documents from a specified SharePoint database.

Get-VESPDocument [-Database] <VESPDatabase[]> [-Query <string>]  [<CommonParameters>]

Detailed Description

This cmdlet returns SharePoint documents.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Accept Wildcard Characters

Site

Specifies a SharePoint site. This cmdlet will return SharePoint documents from a specified SharePoint site.

Accepts the VESPSite object. To get this object, run the Get-VESPSite cmdlet.

True

0

True (ByValue)

False

DocumentLibrary

Specifies a document library. This cmdlet will return SharePoint documents from the specified document library.

Accepts the VESPDocumentLibrary object. To get this object, run the Get-VESPDocumentLibrary cmdlet.

True

0

True (ByValue)

False

ParentDocument

Specifies a parent document in a mailbox. The cmdlet will return child documents of this parent document.

Accepts the VESPDocument object. To get this object, run the Get-VESPDocument cmdlet.

True

0

True (ByValue)

False

Organization

Specifies an organization. The cmdlet will return a document library from this organization.

Accepts the VESPOrganization[] object. To get this object, run the Get-VESPOrganization cmdlet.

True

0

True (ByValue)

False

Database

Specifies a name of the SharePoint database. This cmdlet will return SharePoint documents from the specified database.

Note: This parameter is available for SharePoint databases backed up by means of Veeam Backup & Replication.

Accepts the VESPDatabase[] object. To get this object, run the Get-VESPDatabase cmdlet.

True

0

True (ByValue)

False

Query

Allows using keywords for item search. The cmdlet will return items that match the search query from the specified database, site, list or item.

String

False

Named

False

False

Recurse

Indicates that the cmdlet will return the specified parent document and all of its children.

SwitchParameter

False

Named

False

False

<CommonParameters>

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

Return Type

The cmdlet returns the VESPDocument object that contains an array of SharePoint documents.

Get-VESPDocumentExample 1. Getting SharePoint Document from Site [For Veeam Backup & Replication]

Get-VESPDocumentExample 2. Getting SharePoint Document from Document Library [For Veeam Backup & Replication]

Get-VESPDocumentExample 3. Getting Children Documents from SharePoint Document [For Veeam Backup & Replication]

Get-VESPDocumentExample 4. Getting Documents from SharePoint Organization [For Veeam Backup & Replication]

Get-VESPDocumentExample 5. Getting Documents from SharePoint Database [For Veeam Backup & Replication]

Get-VESPDocumentExample 6. Getting SharePoint Document from Site [For Veeam Backup for Microsoft Office 365]

Get-VESPDocumentExample 7. Getting SharePoint Document from Document Library [For Veeam Backup for Microsoft Office 365]

Get-VESPDocumentExample 8. Getting SharePoint Document from Document Library [For Veeam Backup for Microsoft Office 365]

Get-VESPDocumentExample 9. Getting Documents from SharePoint Organization [For Veeam Backup for Microsoft Office 365]

Get-VESPDocumentExample 10. Getting Documents from SharePoint Database [For Veeam Backup for Microsoft Office 365]

Related Commands