Get-VESPDocument
Short Description
Returns SharePoint documents.
Applies to
Veeam Backup & Replication, Veeam Backup for Microsoft 365
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Get documents from a specified SharePoint document library.
|
Get-VESPDocument [-DocumentLibrary] <VESPDocumentLibrary> [-Query <String>] [-Recurse] [<CommonParameters>] |
- Get child documents of a specified SharePoint document.
|
Get-VESPDocument [-ParentDocument] <VESPDocument> [-Query <String>] [-Recurse] [<CommonParameters>] |
- Get documents from a specified SharePoint database.
|
Get-VESPDocument [-Database] <VESPDatabase[]> [-Query <String>] [<CommonParameters>] |
- Get documents from a specified SharePoint organization.
|
Get-VESPDocument [-Organization] <VESPOrganization[]> [-Query <String>] [<CommonParameters>] |
- Get documents from a specified SharePoint site.
|
Get-VESPDocument [-Site] <VESPSite> [-Query <String>] [<CommonParameters>] |
Detailed Description
This cmdlet returns SharePoint documents.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
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) |
|
Query |
Specifies a query string for item search. The cmdlet will return items that match the search query from the specified database, organization, site, list or item. For more information, see the Appendix A. Item Search Parameters section of the Veeam Backup for Microsoft 365 User Guide. |
String |
False |
Named |
False |
|
Recurse |
Defines that the cmdlet will return all child items of the specified parent item. Default: False |
SwitchParameter |
False |
Named |
False |
|
ParentDocument |
Specifies a parent document. 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) |
|
Database |
Specifies an array of SharePoint databases. This cmdlet will return SharePoint documents from these databases. Note: This parameter is available for SharePoint databases backed up by Veeam Backup & Replication. |
Accepts the VESPDatabase[] object. To get this object, run the Get-VESPDatabase cmdlet. |
True |
0 |
True (ByValue) |
|
Organization |
Specifies an array of SharePoint organizations. The cmdlet will return SharePoint documents from these organizations. |
Accepts the VESPOrganization[] object. To get this object, run the Get-VESPOrganization cmdlet. |
True |
0 |
True (ByValue) |
|
Site |
Specifies a SharePoint site. This cmdlet will return SharePoint documents from this SharePoint site. |
Accepts the VESPSite object. To get this object, run the Get-VESPSite cmdlet. |
True |
0 |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Output Object
The cmdlet returns the VESPDocument array that contains SharePoint documents.
Examples
Example 1. Getting SharePoint Document from Site [For Veeam Backup & Replication]
|
This example shows how to get the reports.txt document from the Teams site.
Perform the following steps:
|
Example 2. Getting SharePoint Document from Document Library [For Veeam Backup & Replication]
|
This example shows how to get a document with a name reports.txt from the Regulations SharePoint document library.
Perform the following steps:
|
Example 3. Getting Child Documents from SharePoint Document [For Veeam Backup & Replication]
|
This example shows how to get child documents for the reports.txt SharePoint document.
Perform the following steps:
|
Example 4. Getting Documents from SharePoint Database [For Veeam Backup & Replication]
|
This example shows how to get all SharePoint documents from the WSS_Content.mdf SharePoint database.
Perform the following steps:
|
Example 5. Getting SharePoint Document from Site [For Veeam Backup for Microsoft 365]
|
This example shows how to get the reports.txt document from the Teams site.
Perform the following steps:
|
Example 6. Getting SharePoint Document from Document Library [For Veeam Backup for Microsoft 365]
|
This example shows how to get the report.txt document from the Regulations document library.
Perform the following steps:
|
Example 7. Getting Child Documents from SharePoint Document [For Veeam Backup for Microsoft 365]
|
This example shows how to get child documents for the reports.txt SharePoint document.
Perform the following steps:
|
Example 8. Getting Documents from SharePoint Organization [For Veeam Backup for Microsoft 365]
|
This example shows how to get the reports.txt document from the ABC SharePoint organization.
Perform the following steps:
|
Example 9. Getting Documents from SharePoint Database [For Veeam Backup for Microsoft 365]
|
This example shows how to get all SharePoint documents from the WSS_Content.mdf SharePoint database.
Perform the following steps:
|
Related Commands