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.

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 Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

%d bloggers like this: