Ask a Question

Resizing the desktop when connected remotely via RDP to Windows Server 2016

jr348
Contributor

Resizing the desktop when connected remotely via RDP to Windows Server 2016

Hi,

 

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?

 

Thanks

2 REPLIES 2
AlexKaras
Community Hero

Re: Resizing the desktop when connected remotely via RDP to Windows Server 2016

Hi,

 

Check if

https://superuser.com/questions/604026/how-to-set-default-screen-resolution-and-color-depth-without-...

helps.

 

Regards,
  /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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
jr348
Contributor

Re: Resizing the desktop when connected remotely via RDP to Windows Server 2016

Hi Alex,

 

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");

 

 

Jonathan

 

 

cancel
Showing results for 
Search instead for 
Did you mean: