4

When I connect to another computer using Remote Desktop, How can I obtain, from Windows Command line in a batch, the screen resolution of the Remote Desktop window, not the screen resolution of the remote server desktop ?

For example if I connect with Rdp to a server with screen resolution 1920x1080 with a Rdp window of 1024x900:

mstsc /w:1024 /h:900 /v:remote_host

and inside the Rdp I try to get the resolution with wmic, i.e.

wmic desktopmonitor get screenheight, screenwidth
ScreenHeight  ScreenWidth
1080          1920

That is the server but not the Rdp resolution. How can be obtained the Rdp screen resolution ?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.