mkellerman / Invoke-CommandAs

Invoke Command As System/Interactive/GMSA/User on Local/Remote machine & returns PSObjects.

Home Page:https://www.powershellgallery.com/packages/Invoke-CommandAs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Invoke-ScheduleTask not having output

mkellerman opened this issue · comments

Seems like there is an issue with the Invoke-ScheduledTask is not produce an output. I think this is due to a race condition between the Task being executed, and the ScheduledJob receiving/capturing the output. Instead of waiting for the ScheduledJob to complete, I'll make it wait for the task to be completed.

After some testing, my assumption was right. Will be fixed in next version.