Get Scheduled Tasks Status Report

NameGet-ScheduledTaskStatusReport.ps1The purpose of this script is to check status of our schedules tasks.DESCRIPTIONThe script wil check if the defined scheduled tasks on the local machine have run  according to the schedule or interval. Then it will send to the recipients that

 
 
 
 
 
(0)
580 times
Add to favorites
Operating System
9/3/2018
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Error
    1 Posts | Last post February 28, 2019
    • Hello,
      
      I keep receiving the below error - any ideas?  If I make $Difference = 0 then it works.
      
      New-TimeSpan : Cannot bind parameter 'Start' to the target. Exception setting "Start": "Object reference not set to an instance of an object."
      At C:\Users\sofcotech\Desktop\Get-ScheduledTaskStatusReport.ps1:50 char:48
      +             $Difference = (New-TimeSpan -Start $TaskRunTime).TotalHours
      
      Regards,
      
      Michael