Image automation is not working when machine is locked. but after logged off is working

When run image automation like image click, screen scrapping from orchestrator, the automation failed when the remote machine is locked. after logged off the machine ran the same job, it did get any error and successfully completed.

Does image automation require machine to logged off?