mkellerman / Invoke-CommandAs

Invoke Command As System/Interactive/GMSA/User on Local/Remote machine & returns PSObjects.
https://www.powershellgallery.com/packages/Invoke-CommandAs/
MIT License
458 stars 70 forks source link

Issue with Invoke-ScheduleTask not having output #16

Closed mkellerman closed 5 years ago

mkellerman commented 5 years ago

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.

mkellerman commented 5 years ago

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

mkellerman commented 5 years ago

Fixed #18