How to set and increase a UiPath robot's screen resolution?

I did a test guiding me from here:

When I am connected to the server using the remote desktop, it works perfect and takes a screenshot, but when I close the remote desktop with the user session active and scheduling a trigger, it doesn’t work and the log records the following error: