Export-SPPList

Top  Previous  Next

Exports all SharePoint items in a SharePoint list to a ZIP file.

Syntax

Export-SPPList [-Source] <SPObjectPipeBind> [-Target] <string> [-DisableTransactionLimits <SwitchParameter>] [-IncludePermissions <SwitchParameter>] [-IncludeVersions <SwitchParameter>] [-Recursive <SwitchParameter>] [<CommonParameters>]

Parameters

Parameter

Required

Type

Description

Source

Yes

SPObjectPipeBind

SharePoint source location. Possible values:

SPList object to export items from.
String object with the absolute URL address of the SPList object to export items from.

Target

Yes

String

The file path of the destination ZIP file.

ExcludeEmptyFolders

No

SwitchParameter

Do not export empty folders.

IncludePermissions

No

SwitchParameter

Includes any item level permissions in the export. Inherited permissions are not exported.

IncludeVersions

No

SwitchParameter

Includes all items versions in the export.

Recursive

No

SwitchParameter

Applies any specified item wildcard(s) recursively to items in sub folders.

DisableTransactionLimits

No

SwitchParameter

Disables the CopyMove transaction limits for the total item count and the total item size in MB that can be exported in one transaction. Use this switch when exporting large lists and libraries that exceed the transaction limits configured on the global CopyMove settings page in Central Administration. However, the transaction may as a result take a long time to complete and consume a significant amount of memory.

Example

Exports all documents and folders in a document library with full version history.

 

Export-SPPList
 -Source "https://teams.mydomain.net/sites/site1/Shared Documents"
 -Target "SharedDocuments.zip"
 -IncludeVersions