Run Health Analysis Jobs - Daily
Really useful if you're developing a solution with many rules, and you want to execute them all.
After listing all of the jobs that are being executed, it outputs the current date/time... this helps when you want to be sure you ran it recently (say after the latest deployment).
$tJobDefinitions = New-Object System.Collections.ArrayList
foreach ($tSvc in [Microsoft.SharePoint.Administration.SPFarm]::Local.Services)
foreach ($tJobDef in $tSvc.JobDefinitions )
if ($tJobDef.DisplayName.StartsWith("Health Analysis Job") -and
$tJobDefinitions.Add($tJobDef) | Out-Null
foreach ($tJobDef in $tJobDefinitions)