I need to refresh all my lists in server daily.
To refresh one list I use this powershell:
$web = Get-SPWeb http://Server/ListLocation
$list = $web.Lists["ListA"]
foreach ($item in $list.Items)
{
$item.UpdateOverwriteVersion();
}
How to refresh all lists? And how do you create a job so it runs daily at 8:00 p.m.?