Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Powershell script to update a field value (recursively) in sharepoint form a .CSV file and not changing the updated by value

$
0
0

need to run through a list of old to new data (.csv) file and change them in a sharepoint list - can not make it work

here is my base attempt.

$web= Get-SPWeb site url
$list= $web.lists["List Name"]
$item= $list.items.getitembyid(select from the items.csv old)
$modifiedBy= $item["Editor"]#Editor is the internal name of the Modified By column
$item["old"] = "new from the .csv file parsed by power sehll"
$ite.Syste,Update($false);
$web.Dispose()

Viewing all articles
Browse latest Browse all 11571

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>