screen width and height in RDP file?

1,194 views
Skip to first unread message

Michael B. Smith

unread,
Jul 22, 2022, 10:32:02 AM7/22/22
to

What’s the secret to making screen width and screen height values work in an RDP file (i.e., a file passed to mstsc.exe)???

 

For example, this doesn’t work:

 

hostname:s:vmazdc003

full address:s:vmazdc003

alternate full address:s:vmazdc003

use multimon:i:0

serverport:i:3389

desktopheight:i:768

desktopwidth:i:1024

selectedmonitors:s:0

screenmode:i:2

 

It gives me a full screen no matter what parameters I try.

 

(FYI: legal values according to MSFT: https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/rdp-files)

 

Thanks!

 

Kurt Buff

unread,
Jul 22, 2022, 10:58:09 AM7/22/22
to ntsys...@googlegroups.com
Desktop size id?

desktop size id:i:value
Specifies the dimensions of the remote session desktop from a set of pre-defined options. This setting is overridden if desktopheight and desktopwidth are specified.
- 0: 640×480
- 1: 800×600
- 2: 1024×768
- 3: 1280×1024
- 4: 1600×1200

Kurt

--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/c4555166286e4d0aa98062fe4592c064%40smithcons.com.

Michael B. Smith

unread,
Jul 22, 2022, 11:09:25 AM7/22/22
to ntsys...@googlegroups.com

Also doesn’t work. Same behavior (always full screen).

Michael B. Smith

unread,
Jul 22, 2022, 11:09:38 AM7/22/22
to ntsys...@googlegroups.com

Thanks for your response!

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Kurt Buff
Sent: Friday, July 22, 2022 10:58 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] screen width and height in RDP file?

 

Desktop size id?

Kurt Buff

unread,
Jul 22, 2022, 11:59:26 AM7/22/22
to ntsys...@googlegroups.com
Change screen mode to 1?

- 1: The remote session will appear in a window
- 2: The remote session will appear full screen

Kurt

Melvin Backus

unread,
Jul 22, 2022, 12:22:44 PM7/22/22
to ntsys...@googlegroups.com

A snippet from one of mine. I force it to 1440x900 in the lower right corner of the 3rd monitor.

 

screen mode id:i:1

desktopwidth:i:1440

desktopheight:i:900

session bpp:i:32

winposstr:s:0,1,2389,102,3845,1041

 

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

 

¯\_()_/¯

--

You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to


To view this discussion on the web visit

Lee Wilbur

unread,
Jul 22, 2022, 1:13:22 PM7/22/22
to ntsys...@googlegroups.com

I’ve never seen that (nor thought to look for it), but it provides some REALLY GOOD info.  THANKS!

 

-Lee

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Kurt Buff
Sent: Friday, July 22, 2022 10:58 AM
To: ntsys...@googlegroups.com

Philip Elder

unread,
Jul 22, 2022, 3:38:55 PM7/22/22
to ntsys...@googlegroups.com

 

We change those two variables in NotePad to whatever custom numbers and it works.

 

Philip Elder MCTS

Senior Technical Architect

Microsoft High Availability MVP

E-mail: Phili...@mpecsinc.ca

Phone: +1 (780) 458-2028

Web: www.mpecsinc.com

Blog: blog.mpecsinc.com

Twitter: Twitter.com/MPECSInc

Skype: MPECSInc.

 

Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.

--

Philip Elder

unread,
Jul 22, 2022, 3:40:44 PM7/22/22
to ntsys...@googlegroups.com

 

I missed that one.

 

What’s the setting with the red arrow?

 

Philip Elder MCTS

Senior Technical Architect

Microsoft High Availability MVP

E-mail: Phili...@mpecsinc.ca

Phone: +1 (780) 458-2028

Web: www.mpecsinc.com

Blog: blog.mpecsinc.com

Twitter: Twitter.com/MPECSInc

Skype: MPECSInc.

 

Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.

 

Philip Elder

unread,
Jul 22, 2022, 3:43:45 PM7/22/22
to ntsys...@googlegroups.com

This is an excellent reference thank you.

 

Philip Elder MCTS

Senior Technical Architect

Microsoft High Availability MVP

E-mail: Phili...@mpecsinc.ca

Phone: +1 (780) 458-2028

Web: www.mpecsinc.com

Blog: blog.mpecsinc.com

Twitter: Twitter.com/MPECSInc

Skype: MPECSInc.

 

Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Kurt Buff
Sent: Friday, July 22, 2022 08:58
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] screen width and height in RDP file?

 

Desktop size id?

Kurt Buff

unread,
Jul 22, 2022, 4:29:52 PM7/22/22
to ntsys...@googlegroups.com
MBS posted it first in this thread...

Kurt

Michael B. Smith

unread,
Jul 22, 2022, 5:06:38 PM7/22/22
to ntsys...@googlegroups.com

AH HAH!

 

Thanks.

 

Stupid mistake on my part.

 

I spelled it “screenmode:i:1” instead of “screen mode id:i:1”.

 

Details matter. Sheesh. And I had looked at it for hours….

Reply all
Reply to author
Forward
0 new messages