1

Is is possible to merge a document library with another library in another site using import-spweb?

We have a source document library called /site/wiki/Shared%20Documents We also have a destination document library called /site/Shared%20Documents We want to merge the contents of the two libraries into the destination library

We tried this:

export-spweb $sourceWebFullUrl -ItemUrl ($sourceListName) -IncludeUserSecurity -IncludeVersions All -path ($tempFilePath) -nologfile -force
import-spweb $destinationWebFullUrl -IncludeUserSecurity -path ($tempFilePath) -nologfile -force

But it fails:

import-spweb : A list, survey, discussion board, or document library with the specified title already exists in this Web site.
Please choose another title.

It seems that we can merge image and wiki page libraries this way but not document libraries... This post suggests we need a third party tool: https://sharepoint.stackexchange.com/questions/59476/merging-document-library-from-one-site-collection-to-a-document-library-in-a-sep

Is this possible OOTB? Is there a better way to merge document libraries without buying AvePoint etc?

1

You could open both document libraries in Windows Explorer (you can do so with Internet Explorer from the ribbon) and the drag files from one library to the other...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.