Set-CopyMoveSiteConfiguration

Top  Previous  Next

Sets CopyMove configuration settings for a SharePoint site collection. Breaks the configuration inheritance from the CopyMove farm configuration. Use the cmdlet Remove-CopyMoveSiteConfiguration to restore inheritance.

Syntax

Set-CopyMoveSiteConfiguration [-Identity] <SPSitePipeBind> [-AllowUserSites <bool>] [-CompatibleLists <string[]>] [-CopyExc ludeProperties <string[]>] [-CopyPermissionsOptionState <CopyMoveOptionState> {Disabled | Unchecked | Checked | Hidden}] [-

CopyPropertiesOptionState <CopyMoveOptionState> {Disabled | Unchecked | Checked | Hidden}] [-CopyVersionsOptionState <CopyM oveOptionState> {Disabled | Unchecked | Checked | Hidden}] [-CustomJSUrl <string>] [-DestinationSites <string[]>] [-EnableC

opyAction <bool>] [-EnableExportAction <bool>] [-EnableImportAction <bool>] [-EnableMoveAction <bool>] [-IncludeFollowedSit es <bool>] [-IncludeMySite <bool>] [-IncludeRecentDestinations <bool>] [-MaxListSubFoldersInTree <int>] [-MaxRecentDestinat

ions <int>] [-MoveExcludeProperties <string[]>] [-MovePermissionsOptionState <CopyMoveOptionState> {Disabled | Unchecked | Checked | Hidden}] [-MovePropertiesOptionState <CopyMoveOptionState> {Disabled | Unchecked | Checked | Hidden}] [-MoveVersi

onsOptionState <CopyMoveOptionState> {Disabled | Unchecked | Checked | Hidden}] [-UsePermissionLevels <bool>] [-UseRecycleBin <bool>] [-WarnOnContentTypeLoss <bool>] [-WarnOnMetaDataLoss <bool>] [-WarnOnVersionHistoryLoss <bool>] [<CommonParamete

rs>]

Parameters

Parameter

Required

Type

Description

Identity

Yes

SPSitePipeBind

SharePoint SPSite object or a string object with site collection GUID or the absolute URL address of the SharePoint site collection.

EnableCopyAction

No

Boolean

Sets a Boolean value indicating whether to enable the Copy action in the UI.

EnableMoveAction

No

Boolean

Sets a Boolean value indicating whether to enable the Move action in the UI.

EnableExportAction

No

Boolean

Sets a Boolean value indicating whether to enable the Export action in the UI.

EnableImportAction

No

Boolean

Sets a Boolean value indicating whether to enable the Import action in the UI.

AllowUserSites

No

Boolean

Sets a Boolean value indicating whether users are allowed personalize the destination tree by adding other site collections / sub-sites.

IncludeRecentDestinations

No

Boolean

Sets a Boolean value indicating whether to include the most recent CopyMove destinations of the current user, in the destination tree.

IncludeFollowedSites

No

Boolean

Sets a Boolean value indicating whether to include the followed site collections of the current user, in the destination tree.

IncludeMySite

No

Boolean

Sets a Boolean value indicating whether to include the MySite site collection of the current user, in the destination tree.

UsePermissionLevels

No

Boolean

Sets a Boolean value indicating whether to use CopyMove permission levels.

UseRecycleBin

No

Boolean

Sets a Boolean value indicating whether to keep a copy of moved documents in the recycle bin.

WarnOnContentTypeLoss

No

Boolean

Sets a Boolean value indicating whether CopyMove should issue warnings on loss of content type information.

WarnOnMetaDataLoss

No

Boolean

Sets a Boolean value indicating whether CopyMove should issue warnings on loss of metadata values.

WarnOnVersionHistoryLoss

No

Boolean

Sets a Boolean value indicating whether CopyMove should issue warnings on loss of version history.

CopyPermissionsOptionState

No

Enumeration

Sets the default state of the Include permissions check box in the Copy destination dialog. Possible values are:

Checked: Check box is checked and visible.
Unchecked: Check box is not checked and visible.
Disabled: Check box is not checked and not visible.
Hidden: Check box is checked and not visible.

CopyPropertiesOptionState

No

Enumeration

Sets the default state of the Include authors check box in the Copy destination dialog. Possible values are:

Checked: Check box is checked and visible.
Unchecked: Check box is not checked and visible.
Disabled: Check box is not checked and not visible.
Hidden: Check box is checked and not visible.

CopyVersionsOptionState

No

Enumeration

Sets the default state of the Include versions check box in the Copy destination dialog. Possible values are:

Checked: Check box is checked and visible.
Unchecked: Check box is not checked and visible.
Disabled: Check box is not checked and not visible.
Hidden: Check box is checked and not visible.

MovePermissionsOptionState

No

Integer

Sets the default state of the Include permissions check box in the Move destination dialog. Possible values are:

Checked: Check box is checked and visible.
Unchecked: Check box is not checked and visible.
Disabled: Check box is not checked and not visible.
Hidden: Check box is checked and not visible.

MovePropertiesOptionState

No

Integer

Sets the default state of the Include authors check box in the Move destination dialog. Possible values are:

Checked: Check box is checked and visible.
Unchecked: Check box is not checked and visible.
Disabled: Check box is not checked and not visible.
Hidden: Check box is checked and not visible.

MoveVersionsOptionState

No

Integer

Sets the default state of the Include versions check box in the Move destination dialog. Possible values are:

Checked: Check box is checked and visible.
Unchecked: Check box is not checked and visible.
Disabled: Check box is not checked and not visible.
Hidden: Check box is checked and not visible.

MaxListSubFoldersInTree

No

Integer

Sets the maximum number of sub-folders to query and show at any level in the destination tree. Specify a value between 100 and 50000.

MaxRecentDestinations

No

Integer

Sets the maximum number of recent destinations to store and show in the destination tree. Specify a value between 1 and 100.

CustomJSUrl

No

String

Sets the URL address of a custom JavaScript file that CopyMove should load on all dialog pages.

EventReceiverClass

No

String

Sets the fully assembly qualified name of a .NET class that inherits and implements the SharePointProducts.CopyMove.CopyMoveEventReceiver class.

CompatibleLists

No

String Array

Array of strings with comma-separated list template ids. Each string must represent a list of compatible list templates that CopyMove should show alongside in the destination selection tree.

DestinationSites

No

String Array

Array of strings with the absolute URL addresses of SharePoint sites that should always show in the CopyMove destination tree for all users who have access.

CopyExcludeProperties

No

String Array

Array of strings with the internal names of SharePoint metadata properties and fields to exclude on all copy and import operations.

MoveExcludeProperties

No

String Array

Array of strings with the internal names of SharePoint metadata properties and fields to exclude on all move operations.

Examples

Break CopyMove configuration inheritance from the CopyMove farm configuration for the site collection https://teams.mydomain.net/sites/site and enable CopyMove permission levels.

 

Get-SPSite "https://teams.mydomain.net/sites/site" | Set-CopyMoveSiteConfiguration -UsePermissionLevels $true