There are different copy options you can apply in your PowerShell script.
- Content Migration
- Structure Migration
- Operation Mode
- Insane Mode and Normal Mode
Applies to the Copy-Content, Import-Document, Import-BoxDocument, and Import-GoogleDriveDocument commands.
Configuration and Filter Options
When migrating with the Copy-Site or Copy-List commands, the application will try to replicate your source by default. To modify the configuration (permissions, workflows, etc.), you have to dismiss the elements you do not wish to preserve on your copy line with a switch parameter:
Migrating a site with no custom permissions, no content, and no workflows:
$srcSite = Connect-Site -Url http://myfarm1/sites/mysourcesite $dstSite = Connect-Site -Url http://myfarm1/sites/mydestinationsite Copy-Site -Site $srcSite -DestinationSite $dstSite -Merge -NoCustomPermissions -NoContent -NoWorkflows
Note: There are two exceptions to this. You have to add -UserAlerts and -Subsites if you wish to keep user alerts and subsites.
To limit the number of versions, you can add -VersionLimit followed by the number of versions you wish to keep.
Insane Mode and Normal Mode
Your script will use the migration speed setting you have in the application by default. You can overwrite the setting by adding -InsaneMode or -NormalMode to your copy line.