Trying to figure out on how to be able to make a screnshot when the server is locked.
Login and run script doesn't seem to work either ( it does on physical machine , but not on a virtual server )
So before people get worried on the why to do so, here it is

I take a screenshot of the screen, save it as a file and add it to a HTML file that people can monitor to check the status of the desktop.
It all works well IF, system is unlocked and is not minimized, if either of these 2 conditions are not met, I get an image of a black screen.
Any ideas ?
Mark