Moving and Copying Items
Moving Items
Basic Move Operations
$sourcePath = "master:\content\home\sample item"
$destinationPath = "master:\content\home\moved"
Move-Item -Path $sourcePath -Destination $destinationPath# If "new-name" doesn't exist, item is moved and renamed
$oldPath = "master:\content\home\old-name"
$newPath = "master:\content\home\new-name"
Move-Item -Path $oldPath -Destination $newPathMoving via Pipeline
Moving with Children
Copying Items
Basic Copy Operations
Recursive Copying
Copying Between Databases
Transfer Options
Value
Behavior
Bulk Operations
Pattern: Move Multiple Items
Pattern: Copy Items Based on Criteria
Pattern: Reorganize Content Structure
Pattern: Copy with Progress Reporting
Maintaining Structure
Pattern: Copy Tree Maintaining Hierarchy
Dynamic Parameters
Parameter
Command
Description
Example
Performance Considerations
Common Pitfalls
Pitfall: Moving to Non-Existent Path
Pitfall: Copying Without PassThru
See Also
References
Last updated