Set-CopyMoveSettings (Deprecated)

Top  Previous  Next

Updates the CopyMove farm settings or the CopyMove settings for a specific site collection. This cmdlet has been deprecated. Use the Set-CopyMoveFarmConfiguration cmdlet to set the CopyMove farm configuration and the Set-CopyMoveSiteConfiguration cmdlet to set the site collection configuration.

Parameter Set 1

Set-CopyMoveSettings [-ConfigXml <String>] [-SiteUrl <String>] [<CommonParameters>]

 

Parameter

Required

Type

Description

ConfigXml

Yes

String

Specifies the CopyMove settings to apply.

SiteUrl

No

String

Specifies the URL address of the site collection to update CopyMove settings for. Omit to update the global CopyMove settings.

Parameter Set 2

Set-CopyMoveSettings [-SiteUrl <String>] [-LinksListUrl <String>] [-CustomJSUrl <String>] [-UseRecycleBin <SwitchParameter>] [-UsePermissionLevels <SwitchParameter>] [-ReportDetailedErrors <SwitchParameter>] [-EnableTransactionLimits <SwitchParameter>] [-InjectEventProperties <SwitchParameter>] [-MaxRecentFolders <Int32>] [-MaxListSubFolders <Int32>] [<CommonParameters>]

 

Parameter

Required

Type

Description

SiteUrl

No

System.String

Specifies the URL address of the site collection to update CopyMove settings for. Omit to update the global CopyMove settings.

LinksListUrl

No

System.String

Specifies the URL address of the SharePoint list where CopyMove stores personal links for the destination selection tree. The links include recent destinations and pinned SharePoint sites. Default value is ~mysite/Lists/CopyMoveLinks

CustomJSUrl

No

System.String

Specifies the URL address of a custom JavaScript file that CopyMove should include in all its dialog pages.

UseRecycleBin

No

SwitchParameter

Specifies if CopyMove should leave items in the recycle bin on moves. Default value is true.

UsePermissionLevels

No

SwitchParameter

Specifies if SharePoint permission levels should be used to restrict access to CopyMove. Default value is false.

ReportDetailedErrors

No

SwitchParameter

Determines if CopyMove should be allowed to reported detailed system errors in the user interface. Default value is true.

EnableTransactionLimits

No

SwitchParameter

Determines if CopyMove should enforce transaction limits. Default value is true.

InjectEventProperties

No

SwitchParameter

When enabled, CopyMove will inject the SPPCopyMoveEvent property into the property bag of SharePoint files during import. SharePoint event receivers will in turn be able to detect when CopyMove is importing a file and when it completes. Default value is false.

MaxRecentFolders

No

Int32

Specifies the maximum number of recent folders to track per user in the CopyMove destination selection tree.

MaxListSubFolders

No

Int32

Specifies the maximum number of sub-folders to query and show at the same level in the CopyMove destination selection tree.

Examples

Load CopyMove settings from an XML file and apply them to a specific site collection.

$settings = Get-Content CopyMoveSiteSettings.xml | Out-String
Set-CopyMoveSettings -ConfigXml $settings -SiteUrl "http://hostname/sites/thesite" -Verbose

 

Updates the MaxRecentFolders property of the CopyMove settings in the site collection http://hostname/sites/thesite

Set-CopyMoveSettings -SiteUrl http://hostname/sites/thesite -MaxRecentFolders 20

 

Updates the MaxRecentFolders property of the global CopyMove settings

Set-CopyMoveSettings -MaxRecentFolders 20