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

Get-VESPSite

Short Description

Returns SharePoint sites.

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:

  • [Veeam Backup & Replication] Get SharePoint sites from a backed-up SharePoint database.

Get-VESPSite [-Database] <VESPDatabase> [[-Name] <String[]>] [-Recurse <SwitchParameter>] [<CommonParameters>]

  • [Veeam Backup for Microsoft 365] Get SharePoint sites from a SharePoint organization.

Get-VESPSite -Organization <VESPOrganization> [-Name <string[]>] [-Recurse]  [<CommonParameters>]

  • Get a SharePoint site from a parent site.

Get-VESPSite -ParentSite <VESPSite> [-Name <string[]>] [-Recurse]  [<CommonParameters>]

Detailed Description

This cmdlet returns SharePoint sites. You can get either parent items or child items of a SharePoint site.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Database

Specifies a backed-up SharePoint database. The cmdlet will get SharePoint sites from the specified database.

Note: This parameter is available for backups of SharePoint created by Veeam Backup & Replication only.

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

True

0

True (ByValue)

Organization

Specifies a Microsoft organization. The cmdlet will return SharePoint items from this organization.

Note: This parameter is available for backups of SharePoint created by Veeam Backup for Microsoft 365 only.

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

True

0

True (ByValue)

ParentSite

Specifies a name of a SharePoint parent site. This cmdlet will return one sub-level child of the specified site.

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

True

0

True (ByValue)

Name

Specifies an array of names for a SharePoint site. This cmdlet will return SharePoint sites with the specified names.

String[]

False

1

False

Recurse

Defines that the cmdlet will return all child items of the specified parent item.

SwitchParameter

False

Named

False

<CommonParameters>

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

Examples

Get-VESPSiteExample 1. Getting SharePoint Site from SharePoint Database [For Veeam Backup & Replication]

Get-VESPSiteExample 2. Getting SharePoint Child Sites from SharePoint Parent Site [For Veeam Backup & Replication]

Get-VESPSiteExample 3. Getting SharePoint Site from Microsoft Organization [For Veeam Backup for Microsoft 365]

Get-VESPSiteExample 4. Getting SharePoint Child Sites from SharePoint Parent Site [For Veeam Backup for Microsoft 365]

Related Commands