Import Data from excel to SharePoint List using PowerShell

In this article we are able to show how to import CSV excel data in to SharePoint List, some time we have to Import large amount of information from excel CSV to SharePoint list for this we can use PowerShell script, we created a list with name "ImportCSVData" with three fields Year,MovieName,HeroName.
 How to add fields to list in sharepoint using powershell 
Copy value from one filed to another field using PowerShell - See more at:
Copy value from one filed to another field using PowerShell 
Date formula in SharePoint calculated value
 Date formula in SharePoint calculated value 

Excel will looks like this

$info = Import-CSV ‘D:\ImportData.csv' -header("Year", "MovieName","HeroName")
$web = Get-SPWeb -Identity ""
$list= $web.Lists["ImportCSVData"]
foreach ($rows in $info )
    $item = $list.Items.Add();
    $item["Year"] = $rows.Year
    $item["MovieName"] = $rows.MovieName
    $item["HeroName"] = $rows.HeroName
Write-Host "Excel information Updated successfully in to List"

How to update the modified by using power shell
How to create topic for discussion board in sharepoint using powershell

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment


  1. How to add the version History to the List Items with PowerShell?
    Is it possible?