Forum Discussion

Jeff_Heathman's avatar
Jeff_Heathman
Copper Contributor
Jan 03, 2022

Azure Virtual Desktop - Select Displays - Primary Monitor Settings

We have employees that use laptops and wish to exclude their laptop screen when using the Windows Remote Desktop application (msrdcw.exe).  We've changed the display settings in the desktop environment to use the two monitors but seem to have issues with controlling what screen is deemed 'Primary' when logging in.  Remote Desktop rather than using the monitor defined as primary on the client PC.  it is instead seemingly just assigning the primary to next monitor based on the numeric value assigned in the Display settings menu. (If Monitor 1 is not used, primary is set to Monitor 2, and so on).

 

Since I have no real way to control what monitor is assigned which number in display settings.  Is there plans or options available to control what screen becomes 'Primary'.

Azure will choose Monitor 2 as primary regardless of Monitor 3 being Default on the client PC.

4 Replies

  • CarlingKirk's avatar
    CarlingKirk
    Copper Contributor

    I've figured out a way to do this. Navigate to %LOCALAPPDATA%\rdclientwpf and find a folder named with a GUID. 


    1. Determine the number identifiers for your monitors by running 

    mstsc.exe /l

    2. Make a note of the monitors that you want to select, the primary and the secondary.
    Inside it there is an RDP file, edit it and ensure these settings are present:

    use multimon:i:1
    selectedmonitors:s:2,1 // Here I wanted monitor 2 to be the primary and 1 the secondary.

    3. In registry editor, find the key "Computer\HKEY_CURRENT_USER\Software\Microsoft\RdClientRadc\Feeds\<username>\<Feed GUID>\TaskbarPinIdToPropertyMap\<GUID from AppData folder>\RelaunchCommand" and copy the command to a .bat script, such as:

    ech0 off
    start "" "C:\Users\<username>\AppData\Local\Apps\Remote Desktop\msrdc.exe" ^
      "C:\Users\<username>\AppData\Local\rdclientwpf\<Feed GUID>\<GUID from AppData folder>.rdp" /u:<username> /l:3 /p:22592 /r:3

    4. Run the script and bypass the Remote Desktop client with your desired monitor set correctly!

  • skylerkincaid's avatar
    skylerkincaid
    Copper Contributor

    We are also running into the same issue on the latest version of the Remote Desktop app 1.2.5713.0. In our case, the staff member has three monitors (1,2,3) and has #2 as her primary on her local computer. She is only using 1 and 2 in the select monitors settings.

    When AVD connections, it makes #1 the primary and #2 the secondary with no options to change it.

  • The only thing I can think of:
    * Close the lid of the Laptop, forcing the monitors to be used (you could try to reopen the lid and see if the monitors stick)
    * Move the Remote Desktop window to another monitor and stretch it out.

Resources