I created the next script with powershell and it updates all the items in a list:
Add-PSSnapin "Microsoft.Sharepoint.Powershell"
$site = Get-SPWeb -identity "http://mywebsite"
$list = $site.Lists["List"]
$spitems = $list.items
foreach($item in $spitems){
[Microsoft.SharePoint.SPListItem]$spListItem = $item
$spListItem.Update();
}
It's executes very well. But my problem is the next. When I add or modify a item in this list, this script are executed, I don't want this. How can I stop this script? Thank you.