Sunday, April 22, 2012

PowerShell: Update every list item in SharePoint

So I do have a workflow that starts, when an item has been changed. And i got a list with many items, which need an update to get the workflow started. Instead of clicking on every item, I decided to write a little script, to create an update on every item.
$web=get-SPWeb "YOURWEB"
foreach($item in $list.Items)
And now the workflow will run for every item.

No comments:

Post a Comment