I've got a strange issue. I've several tasks scheduled and they work fine for years. In our testlab I've upgrade a vCenter from 5.5 to VCSA6.0 and all the tasks are still running fine. No we have a fresh installed vcsa6.0 and we're running the same scheduled tasks. Now we have an issue that the tasks are started and running with the normal status (0x41301) except this tasks keep running end are never finishing. When I started the the powercli script direct from the powercli it starts running and is finished within a minute. All credentials are ok. We're running the powercli scripts from a Windows 2008r2 host. I've allready upgrade powercli to version 188.8.131.5294. I can't find the root cause of this. Do you have any idea? Vincent
Most of the time this is caused by the script doing something that is considered interactive.
Try adding a transcript to your script (Start-Transcript, Stop-Transcript).
This might give some clues.
You can also add some Write-Host line in the script, just to make sure how far it goes till it becomes unresponsive.