Summary: Use Windows PowerShell to find the number of missed runs on a scheduled task or scheduled job.
How can I use Windows PowerShell to find the number of missed runs on a scheduled task or scheduled job?
Use the scheduled task cmdlets:
PS C:\> Get-ScheduledTask -TaskName MyScheduledJob | Get-ScheduledTaskInfo
LastRunTime : 10/16/2013 10:20:20 AM
LastTaskResult : 0
NextRunTime : 10/17/2013 10:20:20 AM
NumberOfMissedRuns : 0
TaskName : MyScheduledJob
TaskPath : \Microsoft\Windows\PowerShell\ScheduledJobs\
PSComputerName :
PS C:\> (Get-ScheduledTask -TaskName MyScheduledJob | Get-ScheduledTaskInfo).NumberOfMissedRuns
0