How to get the list of running Timer Jobs in SharePoint 2010/2013/2016?
Hello SharePointers,
Below is the Powershell Script to find the list of timer jobs in SharePoint 2010/2013/2016.
# Get current date
$date = Get-Date
# Show current date
Write-Host “Looking for running Timer jobs with a Last Run Time to” $date
# Get all Timer jobs and iterate
Get-SPTimerJob | ForEach-Object {
# Get last run time for job
$JoblastRunTime = $_.LastRunTime
# If run time is greater than/equal to write it out
if ($JoblastRunTime -ge $date)
{
Write-Host $_.Name”, last run at” $_.LastRunTime
}
}
Happy SharePointing 🙂