The following are parameters for the -cmd CopyList command
-donotcopycontenttypes |
do not copy list content types |
-copylistcontent |
copy list content |
-copylisthistory |
copy list history |
-overwritebehaviour |
overwrite the lists behavior on the target |
-copylistpermissions |
copy list permissions |
-includeHiddenFields |
copy hidden fields |
-includeDocumentID |
copy document ID property |
-deferredgroupmembership |
update membership of the groups during permissions migration |
-copylistviews |
copy list views |
-copylisttemplates |
copy list templates |
-usermapping [path] |
path to the CSV file with user mapping to the copy operation |
-webpartsfile [path] |
path to the CSV file with webparts to be removed from the page |
-templatemapping [path] |
path to the CSV file with templates mapping |
-copyworkflows |
copy workflows |
-infopath |
copy InfoPath forms |
-mapping [template.mvmap] |
mapping template file |
Example:
Essentials -cmd copylist -srcsite http://host/site -srclist DocLib -srcuser DOMAIN\user -srcpass passwd -trgtsite http://host/site2 -trgtlist DocLib2 -trgtuser DOMAIN\user -trgtpass passwd -copylistcontent -copylisthistory -copylistviews -copylisttemplates -usermapping path/file.csv -templatemapping path/file.csv -log output.log
The following are parameters for the -cmd CopySite command
-asnewsite |
copy site as new site |
-asnewsitecollection [url] |
copy site as new site collection |
-copysubsites |
copy site with subsites |
-copypermissions |
copy site permissions |
-copygroups |
copy site groups |
-copywebparts |
copy site webparts |
-copycollectionfeatures |
copy site collection features |
-copyfeatures |
copy site features |
-copycontenttypes |
copy all content types |
-copylists |
copy all lists |
-copylistcontent |
copy list content |
-copylisthistory |
copy list history |
-overwritebehavior |
overwrite sites behavior on the target |
-copylistpermissions |
copy list permissions |
-copylistviews |
copy list views |
-copylisttemplates |
copy list templates |
-rootname [name] |
new name for the target site |
-copythreads [number] |
number of parallel threads for copy |
-usermapping [path] |
path to the CSV file with user mapping to the copy operation |
-templatemapping [path] |
path to the CSV file with templates mapping |
-centraladminurl [url] |
URL of Central Administration |
-farmadmin [user] |
farm admin user name |
-farmadminpassword [password] |
farm admin password |
-farmadminepassword [password] |
farm admin encrypted password |
-copylayoutsgallery |
copy page layouts gallery |
-copymastergallery |
copy master page gallery |
-copylookfeel[all]|[page[,page]] |
copy look&feel options:
all copy - all following pages title - copy title, description, icon navigation - copy navigation treeview - copy tree view sitetheme - copy site theme linkbar - copy top link bar launch - copy quick launch layouts - copy layouts and site templates master - copy master settings welcome - copy welcome page |
-copyspd |
copy Sharepoint designer objects |
-copywebparts |
copy site home page |
-copysiteworkflows |
copy site workflows |
-copyworkflows |
copy workflows |
-infopath |
copy InfoPath forms |
Example:
Essentials -cmd copysite -srcsite http://host/site -trgtsite http://host/site2 -rootname newsite -asnewsite -copysubsites -copypermissions -copywebparts -copycollectionfeatures -copyfeatures -copycontenttypes -copylists -copylistcontent -copylisthistory -copylistpermissions -copylistviews -copylisttemplates -usermapping path/file.csv -templatemapping path/file.csv -log output.log
The following are parameters for the -cmd CopyItems command
-mapping [template.mvmap] |
mapping template file |
-trgtfolder [path] |
target path folder |
-overwritebheavior |
overwrite the items behavior on the target |
-filter {[field][operator][value]} |
filters source items |
field - internal name of a field in SharePoint | |
operator- compare operator, such as one of the following: = equals to != does not equal to > greater than < less than ^= starts with *= contains | |
value - criteria | |
Use these patterns for dates: | |
-usermapping [path] |
path to the CSV file with user mapping to the copy operation |
-authorship |
Authorship |
basic - preserve Created/Modified properties (by default) | |
approval - preserve Approval Status/Comments | |
-deferredgroupmembership |
update membership of the groups during permissions migration |
-includeHiddenFields |
copy hidden fields |
-includeDocumentID |
copy document ID property |
Example:
Essentials -cmd copyitems -srcsite http://host/site -srclist DocLib -trgtsite http://host/site2 -trgtlist DocLib2 -trgtfolder folder1 -mapping D:/Temp/template.mvmap -filter "FileLeafRef*=.jpg" "Modified>2022-01-01" "Modified_x0020_By=DOMAIN\user" -usermapping path/file.csv -log output.log
The following are parameters for the -cmd OverwriteBehavior command
-overwritebehavior dont_copy |
do not overwrite if file exists |
-overwritebehavior add_version |
overwrite if file exists (versioned and non-versioned library) |
-overwritebehavior overwrite -filterfrom n days |
overwrite with days filter (incremental copy) |
-overwritebehavior overwrite -filterfrom n weeks |
overwrite with weeks filter (incremental copy) |
-overwritebehavior overwrite -filterfrom n months |
overwrite with months filter (incremental copy) |
-overwritebehavior overwrite -filterfrom 0 days |
delta copy |
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center