Monitor Scheduled Task Failures

I wanted to share this small code which I have originally found on internet, modified a bit to work for us. I am also including the function Get-FailedScheduledTasks inside latest vsadmin module which is getting very good response from the community as it includes all day-to-day scripts used by system administrators in the form of…