sharepoint用powershell批量更新列表数据

例如:

$web=get-SPWeb "http://10.119.10.188"
$web.title
$list=$web.Lists["公司新闻"]
$list.title
$items = $list.Items
$items | ForEach-Object{
  $_["类别"]='公司新闻';$_.Update()
}

这样就能实现非视图的批量更新了

posted @ 2013-01-11 14:11  double_ed  Views(298)  Comments(0Edit  收藏  举报