OS - Windows Server 2012
I have an inventory scheduled task that has 31 actions. Each action runs a different Powershell script. If one of the actions/Powershell scripts is stuck, I want to know which one it is so I know which one may have a coding issue.
Is there any way to indicate which action is running out of the 31? Is there a Powershell script that I can run where I enter the scheduled task name and it will return something like "Processing 18 or 31 actions"?
Something to add to this script:
Get-ScheduledTask |where TaskName -EQ 'Inventory_Part3'| Get-ScheduledTaskInfo