In this article we can able to see how to export and import document library using PowerShell, here we need to get all version document modified history and including users.
How to get field empty values in SharePoint usingPowerShell
The attempted operation is prohibited because it exceedsthe list view threshold enforced by the administrator
Now using the below script we are exporting in to our local D drive.
Export-SPWeb http://dotsharepoint.com/sites/SP/Documentsite/ –Path "D:\Documents.cmp" -ItemURL "Shared%20Documents" –IncludeUserSecurity -IncludeVersions All
Now using the below script we are importing to another SharePoint site
Export-SPWeb http://dotsharepoint.com/sites/SPSite/NewDocuments/ –Path "D:\Documents.cmp" – force –IncludeUserSecurity