If((Get - PSSnapin | Where
{
$_.Name - eq "Microsoft.SharePoint.PowerShel"
}) - eq null) {
Add - PSSnapin Microsoft.SharePoint.PowerShel
}
$web = Get - SPWeb http: //sharepoint/
$list = $web.lists("RMD FRSN Data")
$cnt = 0
foreach($i in Import - CSV File.csv)#put your file name in place of file.csv
{
$new = $list.Items.Add()
$new["EmployeeCode"] = i.EmployeeCode
$new["SalesOrganization"] = i.SalesOrganization
$new["CreatedAt"] = i.CreatedAt
$new.Update()
$cnt++
}
"Added " + $cnt.ToString() + " records."In this code we will learn how to upload file into sharepoint list.