Hello all,
When using this script, I am able to tag items in a list, but it won't change those in a document library. Please help:
$web = Get-SPWeb http://mycompanysite.com/test
$list = $web.lists["Test"]
$CSVcnt= 0
$items = $list.getItems()
foreach($i in Import-CSV C:\PowerShell\EditListItemValues.csv)
{
$listCnt = 0;
Foreach($item in $items){
If($item["Name"] -eq $i.AnchorAttribute) {
$item["test1"] = $i.Attribute1
$item["test2"] = $i.Attribute2
$item["test3"] = $i.Attribute3
$item["test4"] = $i.Attribute4
$item.update()
}
}
}
Personal Blog: http://thebitsthatbyte.com