I'm using Microsoft.SharePoint.Deployment.SPExportSettings/SPImportSettings class to migrate 1 listitem successfully.

But I need to migrate only 1000 listitems.

Thanks in Advance:)

  • or any example to move 1 foder data using [Microsoft.SharePoint.Deployment.SPDeploymentObjectType]::Folder – raju Jan 12 '18 at 7:04
$GC = Start-SPAssignment 

$Site1= Get-SPWeb $UrlSite1
$Site2= Get-SPWeb $UrlSite2

$List1= $Site1.Lists["List1_Title"]
$List2= $Site2.Lists["List2_Title"]

foreach ($listItem in $List1.Items)
    $newItem = $List2.items.add()
    $newItem =  $listItem
 foreach ($folderItem in $List1.Folders)


Stop-SPAssignment $GC

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.