Resizing the desktop when connected remotely via RDP to Windows Server 2016
Does anyone know how to change the desktop size after connecting via RDP?
My OS is defaulting to 1024x768 but the application needs 1920x768.
We use the tscon.exe command to swith the session to "con:" which is set at the lower resolution.
I'm thinking we'll have to change that in the VM graphics config but is there any other way of doing it "in code" or OS scripting?
/Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Thanks for the solution which is the best as it changes the console default resolution in the registry. I will give it a try.
As it is I used this which runs first before any applications are opened:
getActiveXObject("WScript.Shell").Run("powershell -command Set-DisplayResolution -Width 1920 -Height 1080 -Force");