I am running a windows VM on Amazon EC2 which is a 2016 server.
I have a script set up that uses a graphical image search function to find some data. This runs perfectly fine when I am remotely connected, and I have scheduled it to run at 2am, so that I can automatically boot the instance up, have the script run, and then power the instance down without me needing to do anything.
However, the script fails when I am not connected via RDP, because it can't find the images because the GUI isn't being rendered.
What I am looking for is a way to have the GUI be rendered when I'm not connected via RDP, and I haven't been able to find any solutions to this problem online.
To further illustrate the problem, If I log on, and run the script manually via RDP, it starts to work. However, if I close the RDP connection, the script still runs, but doesn't succeed as it can no longer get image data. I want my script to be able to get image data while there is no active RDP connection.
Edit: this is different from the linked topic as I am trying to use the graphical features of the OS, rather than just running a script automatically.