Copy SPList in SharePoint 2010


 

We recently had a requirement after we upgraded some SharePoint 2007 Content Databases to SharePoint 2010 to move some of the content (Lists) into a different site template.

Some of the lists we had to move were:

  • Discussions
  • Announcements

I decided to use Gary Lapointe’s PowerShell Extensions for SharePoint 2010 which were simple to install and use.

The command we used was Copy-SPList and an example of which is below:

Copy-SPList –sourceList http://sharepoint/sites/web/Lists/Team%20Discussion/AllItems.aspx -targetweb http://sps/sites/test -IncludeUserSecurity

The only thing we did before the copy was ensure that on the target web we were able to create the type of list we were copying over.

Wes MacDonald's avatar

About Wes MacDonald

Wes MacDonald is a DevOps Consultant for LIKE 10 INC., a DevOps consulting firm providing premium support, guidance and services for Azure, Microsoft 365 and Azure DevOps.

No comments yet... Be the first to leave a reply!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.