How to copy files from one document library to another library using powershellVijai Anand Ramalingam15yPublished Mar 31, 2011, 12:00 AMUpdated Mar 31, 2011, 3:02 AM5.5k00Reactions×25Blog$siteURL="http://serverName:1111/"$site=Get-SPSite $siteURL$web=$site.RootWeb$collFiles=$web.GetFolder("Shared Documents").Filesforeach($file in $collFiles){ $file.CopyTo("Destination Library/"+$file.Name,$true)}CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.