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>] [-EnableTransactionLimits <SwitchParameter>] [-MaxListSubFoldersInTree <int>] [-MaxRecentFoldersInTree <int>] [-ReportDetailedErrors <SwitchParameter>] [-UsePermissionLevels <SwitchParameter>] [-UseRecycleBin <SwitchParameter>] [<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.
|
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.
|
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
|
Enables CopyMove permission levels in the site collection http://hostname/sites/thesite
Set-CopyMoveSettings -SiteUrl http://hostname/sites/thesite -UsePermissionLevels
|
|