Created
December 6, 2018 11:11
-
-
Save RobsonAutomator/f25c54ee1793224bdf1a054ba08c94a1 to your computer and use it in GitHub Desktop.
Copy items from source to destination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$destination = 'master:\sitecore\templates\' | |
$source = 'master:\sitecore\templates\' | |
$items = Get-ChildItem -Path $source | |
#use -WhatIf to check | |
Get-ChildItem -Path $destination | Remove-Item | |
foreach( $item in $items ) | |
{ | |
Copy-Item $item.ItemPath $destination | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment