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 |
The following are parameters for the -cmd CopyItemsUsingCSV command
-csvFile |
specifies CSV file |
-useCorePropety |
indicator for core properites from CSV |
-charset |
specifies charset |
-numCopiedVersion |
specifies number of versions to copy |
Example:
Essentials -cmd copyItemsUsingCSV -trgtsite http://host/site -trgtlist "Shared Documents" -trgtuser "DOMAIN\user" -trgtepass "passwd" -overwritebehavior dont_copy -csvFile path/FileName.csv -log output.xml -noSplash
The following are parameters for the -cmd ImportFiles command
-path [path] |
file path |
-mapping [template.mvmap] |
mapping template file |
-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 |
--azurturbo "[storage account] [account key] [host]" |
Azure Turbo flag with parameters |
Example:
Essentials -cmd importfiles -path C:/Temp/file1.doc -trgtsite http://host/site2 -trgtlist DocLib2 -mapping D:/Temp/template.mvmap -usermapping path/file.csv -log output.log
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center