First of all sorry for the (maybe not so specific) title as it consists of multiple topics.
The issue atm i'm having is related to my test automation setup. It consists of a linux machine handling the BE + FE and starting of the test themselves. And a Windows Server 2008 (Terminal) to which i connect through RDP session and it's the place the actual tests are run. For automation purposes i use Ranorex.
First of all how i have the Win machine set up: As Ranorex is a GUI test automation tool it needs to have the components visible for the AUT (application under test) and for this reason you need to close the RPD client without closing the session itself otherwise the test will start failing.
For this i created a bat file with the following code:
%windir%\System32\tscon.exe RDP-Tcp#0 /dest:console
And added a reg entry DWORD value under HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
RemoteDesktop_SuppressWhenMinimized
with the value 2.
What this does is after running the bat file with admin rights it will close the RDP session but will still keep the terminal connection open to the Win Server machine allowing the tests to be run.
Now the issue on hand is that after closing the session safely the resolution that gets set for the left open session is 1024x768 while when RDP connection is open it is 1920x1200.
So finally the question which i haven't been able to answer myself: is it somehow possible to specify the resolution for the session that is kept open?