6
I have checked this question but my situation is slightly different.
I have a work computer with 2 monitors, each running at 1650x1050. I have a 3 monitor setup at home. Both systems run Windows 7. All three monitors on the home system run at 1920x1080 with one monitor setup individually and the other two configured as a single 3840x1080 monitor. I'd like to have my RDP session run on the one 3840x1080 monitor, but there's a problem.
I've configured my home computer's RDP session for work to run at 3840x1080:
mstsc.exe default.rdp /w:3840 /h:1080
This works about half the time. The other half, the remote window comes up at a resolution of 4096x1080 (I think this is probably the default "maximum" resolution or something.)
It seems to have something to do with whether the session starts up on my one "single" monitor or my other "dual" monitor. Unfortunately, I have the "single" monitor set up as my "main" display in Windows so that's where it wants to start. I have to futz around with the position of the desktop shortcut and move the login window to the other monitor, and still it only works about half the time.
Does anybody have a way to either (1) get RDP to forcibly accept this 3840x1080 resolution or (2) force it to start up on the secondary monitor?
If the opened window has scrollbars then add 16 to the second last number (window padding) and 46 to the last number (window padding + title bar) – Søren Kruse – 2018-04-05T07:54:59.050
A wonderful answer, I wish it had worked. Unfortunately, no matter what I try, it seems to make the remote desktop open with dimensions of 4096x1080. I've tried -3840,0,0,1080 which would seem to be the correct settings (my large "composite" monitor is to the left of my main desktop). I've also tried various other settings (+-1 to each number for example) and it seems firmly set on 4096 as the width. I'll keep fiddling with it... thanks again... – user1071914 – 2013-10-25T19:18:35.330
Gahhh. This is bizarre. It's suddenly started working. It seems to be connected to the "screen mode id" parameter as well as the "winposstr" parameter. If the RDP session starts up as a WINDOW, it seems to set itself to the correct dimensions. I'm not going to argue with it - a win's a win as far as I'm concerned. Thanks for the help! – user1071914 – 2013-10-25T19:52:33.040