Powershell Snippet for Copying Lists between two Sites/Site Collection

               In order to write some posts on this blog, I came across a situation where I had to copy SharePoint lists between two sites in two different site collections. And these two site collections are 2010 and 2013 environments [ Click here to learn how to create a site collection in SharePoint 2010 environment]. In this post I will explain a PowerShell snippet to copy SharePoint lists between two Sites or Site collections. This snippet is a PowerShell way of exporting a list and importing it to SharePoint.

For this PowerShell Snippet to work, you will need the following values:

1. Source Website URL
2. Destination Website URL
3. A temporary path to save the exported data from SharePoint.
4. list of all the SharePoint lists.

This method allows you to copy all the user security on the list and preserving all the versions (Keywords: IncludeUserSecurity and IncludeVersions).

PowerShell Snippet: