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 wesmacdonald

Wes MacDonald is a Visual Studio ALM MVP, PSD, MCT and a Principal Consultant for LIKE 10 INC., a SharePoint Server, Visual Studio and Team Foundation Server Consulting Firm providing premium support and guidance services.

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: