Can you use 2 screens with remote desktop Windows 10?

How to remote desktop fullscreen RDP with just SOME of your multiple monitors

March 26, 2020 Comment on this post [33] Posted in Win10
Sponsored By

I saw this over on the Microsoft Remote Desktop Uservoice

Allow ability to choose subset of local monitors for RDP session [full screen]

Allow ability to select a subset of current monitors with full screen. Currently can choose all or 1 but cannot choose for instance 2 of 3 [full screen].

That seems useful, I wish it did that. I know about this checkbox that says "Use all my monitors" but I can't say just use 1 and 2 but not 3, right?

Turns out that you CAN span n monitors but it's just buried/internal and has no UI.

Save your RDP file, and open it in Notepad. Everyone's RDP file is different but yours may look like this:

full address:s:x.x.x.x:3389 prompt for credentials:i:1 administrative session:i:1 screen mode id:i:2 span monitors:i:1 use multimon:i:1 selectedmonitors:s:0,1

I can put on selectedmonitors:s:x,y and then use the zero-based numbers to indicate my monitors. To get a list of monitors, I can run mstsc /l to LIST out all my monitors on my machine. I can also use mstsc /multimon as a command line to use multiple monitors.

So I set my selectedmonitors:s:0,1 to use my left and middle monitor and skip my right one.

In this picture, I'm RDP'ed into a remote Windows 10 machine in Azure on Monitors 1 and 2 while Monitor 3 is my local one.

Sweet.

Sponsor: Protect your apps from reverse engineering and tampering with PreEmptive, makers of Dotfuscator. Dotfuscator has been in-the-box with Microsoft Visual Studio since 2003. Mention HANSELMAN for savings on a professional license!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.


About Newsletter
Hosting By
Comment on this post [33]
Share on Twitter or Facebook or use the Permalink
April 02, 2020 2:10
Yet one more reason why you're awesome, Scott. I saw this on my feed today and was so ready for this to be an April Fool's prank. I'm sooo glad it's not. How is it that this isn't more commonly known? Thanks for sharing and saving all of us remote folks with many monitors!
Ben
April 02, 2020 3:16
I've needed this for a long time, classic Edge would keep full screen Netflix above the rdp screen. But, new Edge and Chrome don't.
Larry
April 02, 2020 5:13
Wow, impressive, many thanks! ;]
It's also impressive how much more demands and requests there about same feature rose over past 2 weeks [me including]. Remote work is doing its' job.. ;]
Aleksandras
April 02, 2020 10:11
LEGEND. HERO. CHAMPION. Enough said.
DC
April 02, 2020 13:18
Yeah Natural Ergonomic Keyboard 4000!
Cory
April 02, 2020 13:23
You are the best!
Laci
April 02, 2020 13:59
O. M. G.

I've been wanting this for years, and I opened a suggestion for just that on the Windows Insiders page years ago, and it got a few hundred upvotes.

At first I couldn't get it to work as I only had added the "selectedmonitors" line to an .RDP file I already have. It's only after I've added the half-dozen other lines you mentioned that it started working for me.

Worth a mention: mstsc /l doesn't show the same monitor indexes as the applet that comes up when you right-click on the desktop and select Display Settings [even if you subtract 1 from everything to make the indexes 0-based].

Also worth a mention: This does *NOT* work for non-adjacent monitors. In my case, mstsc /l shows indexes 0, 3 and 4 [why they're not contiguous, I don't know but it doesn't matter; they're physically laid out in that order, left to right]. 0 and 4 don't work together, but 0 and 3 [or 3 and 4] do.
dandy72
April 02, 2020 14:19
Just, thanks!
Jonathan Menzel
April 02, 2020 14:27
Any ideas on how to change the location of the Remote Desktop status tab to the side or bottom of scrren? Any time I go to a browser tab, it takes over the top of my screen. Full screen mode works well but I can't ever exit it with my laptop for some reason. It does not have the correct keys and the key combos I've seen to get around that, don't work either.
Dan Harmon
April 02, 2020 16:02
Does this work on Win 10 only?

Command 'mstsc /l' is not recognized and selectedmonitors parameter doesn't work on my work laptop [Win 8.1]. Is there any alternative? Thanks in advance.
Honzik
April 02, 2020 17:51
Mmmm.... Cheese crackers!
Olly
April 02, 2020 18:25
Awesome! One important typo you should fix:

The sentence toward the bottom says "So I set my selectedmonitors:0,1 to use my left and middle monitor and skip my right one." but should be "So I set my selectedmonitors:s:0,1 to use my left and middle monitor and skip my right one." That extra "s:" is required.
Andy
April 02, 2020 19:04
Now, for the encore... Can you do this with vmconnect's Enhanced Session settings? I do all my work stuff in a VM Enhanced Session, which I believe is just a type of RDP connection. I'm just not sure how these settings are stored.
Bryan
April 03, 2020 3:56
Andy, thanks, fixed!
Scott Hanselman
April 03, 2020 8:44
Great post Scott thanks!
Now if only it were as easy to mix & match remoted MacOS machines and PCs and switch around the number of monitors each gets...
Joan Miro
April 03, 2020 14:22
Does anyone have a fix for multiple monitor RDP where every time you connect, ALL the open windows on the target machine jump to just one monitor instead of saying where I left them?
Andrew Wall
April 04, 2020 19:24
Unfortunately, as far as I know, there's no multi-monitor support that isn't full-screen on all monitors.
If I have two screens, and I want to use them both in my RDP session, I can no longer see my host taskbar.
So to interact with anything on my host, I have to restore down the RDP session, at which point I can't see most of the screen real estate in the remote session.
A common use case for that is playing music, for example. When I'm working on something remotely, I'm playing audio locally, and to pause or adjust volume or change tracks the host needs focus.
Conferencing apps are in the same boat.
This is disruptive enough to my workflow that Hyper-V's reliance on RDP is the reason I don't use it for virtualization, and in fact I have a bare-bones VM set up in VirtualBox [which is happy to have a resizable window per each virtual monitor, and set the guest screen dimensions to exactly whatever the windows get resized to on the host] just so I can use it to RDP to other boxes and have the screen experience I want. Which is a ridiculous and inefficient workaround
RDP is capable of showing a session in a window and not having to use the whole screen, and mouse capture across the edge of that window works exactly as one would expect.
It's also capable of setting an arbitrary screen resolution for that window on the guest if you edit the .rdp file.
It's also capable of using multiple monitors, and as you now have demonstrated, is capable of not using ALL the multiple monitors available...
So why can't we just have two windows. And why can't they resize accordingly when we maximize them.
Because of all of those pieces, it feels to me like the protocol might already be fully capable of this but the client app is not?
Grant
April 04, 2020 20:39
To think that someone went to the trouble of implementing this and then when it came to the UI someone else decided to bury it.
Marius Bughiu
April 05, 2020 14:14
Thanks for sharing this info with us.
jagdish Kumar
April 06, 2020 17:04
OMG!!! I have been wanting this tip for years! One monitor is too little but four monitors is too much bandwidth. THANK YOU!!!
Tony
April 07, 2020 4:19
The monitor numbers keep changing randomly between reboots. The same two monitors are 0,1 on one day and 1,2 on the next. Is anybody else seeing this? Any idea why the numbers keep changing? As annoying side effect, the main monitor [with the main taskbar] is also changing each time, and the remote monitor that used to be left is then on the right and vice versa.
Mathias
April 07, 2020 13:26
with the advent of ultra wide monitors it would be nice to assign part of the screen [say, an half] to the RDP session, a sort of opposite of what has been explained here. Maybe there are internals even for this?
Mose Bottacini
April 08, 2020 5:11
Yes! Thank you for posting this. Been trying to figure out how to do this.
Chad Maxwell
April 09, 2020 9:06
One of the best blogs out there. Love your work! Your tips are really amazing. Thank you so much for sharing.
Namit Pandey
April 09, 2020 19:19
Would be great to add reminder to not have RDP open to the internet. Go via VPN or something!
Mateusz
October 13, 2020 15:03
Good call. I've got a new job that involves RDC, and using all 3 monitors has been driving me nuts. Thanks.
Matty Hislop
October 19, 2020 5:14
Thanks very much, had a call from a user about this today. The first half of his day has been miserable. Thanks to you, the remainder of his day will be much better!
Nick
October 20, 2020 18:39
Huge help thanks for this!

Adding in as well that I discovered you can configure your primary monitor by changing the order the monitors are listed:

selectedmonitors:s:0,1,2

To something like:

selectedmonitors:s:2,0

This has been useful for me dealing with different sized monitors and is simpler than the most common instructions for this I found online that involve changing the winposstr:s: values.
Taylor S
October 21, 2020 23:59
Unlike the Mac where I can choose to keep 'some' of the screens in the background, Windows forces ALL the remote desktops into the foreground if you click on any of them...

Unexpectedly this becomes a requirement instead of a nice to have on Windows.

Also: "Oldie but goodie" ;]
Werner Ackermann
October 25, 2020 22:07
Thanks for a marvelous posting! I genuinely enjoyed reading it, you're a great author.I
will always bookmark your blog and definitely will come back later
in life. I want to encourage you to continue your great posts, have
a nice holiday weekend! //anunturi-parbrize.ro/index.php?cauta=luneta+subaru
Luneta Subaru Leone 1985
November 03, 2020 9:10
I do agree with all the ideas you have presented to your
post. They are really convincing and will definitely work.

Nonetheless, the posts are very short for newbies.
Could you please extend them a bit from next time?

Thanks for the post. //anunturi-parbrize.ro/luneta-fiat-22.html
Luneta Fiat Fiorino Estate
November 03, 2020 19:38
Does anyone know a workaround for MacOS? The selectedmonitors:s: command does not work on the Mac version of Remote Desktop.
I have users with 3 displays and they want 1 for Mac, with 2 and 3 for remote PC.
It's been driving me crazy!
Dave Watson
November 04, 2020 17:59
The mstsc on my corporate computer doesn't have the /l switch :[

I suspect that's because we're still running build 1803. Is there a way to update mstsc independently of the build I'm stuck on?
Mark Iannucci

Comments are closed.

Video liên quan

Chủ Đề