question

GokhanVarol-4813 avatar image
0 Votes"
GokhanVarol-4813 asked GokhanVarol-4813 commented

What settings are available in %AppData%\Roaming\Microsoft\Windows\Hyper-V\Client\1.0\vmconnect.rdp.XXXX.config file

I am running HyperV from Host Windows 10 Pro 20H2(19042.906)
I have 4 monitors and I only want 3 out of 4 monitors to be used in Full screen from the HyperV guest. I cannot find any reference to modify the "%AppData%\Roaming\Microsoft\Windows\Hyper-V\Client\1.0\vmconnect.rdp.XXXX.config" file. Below is the contents of the file
What do I need to modify to use 3 out of 4 monitors

I want to use monitor 0,1,2 (I do not want o use monitor 3)

84937-monitors.png

 <?xml version="1.0" encoding="utf-8"?>
 <configuration>
     <Microsoft.Virtualization.Client.RdpOptions>
         <setting name="AudioCaptureRedirectionMode" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="EnablePrinterRedirection" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="FullScreen" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="SmartCardsRedirection" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="RedirectedPnpDevices" type="System.String">
             <value>*</value>
         </setting>
         <setting name="ClipboardRedirection" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="DesktopSize" type="System.Drawing.Size">
             <value>3840, 2160</value>
         </setting>
         <setting name="VmServerName" type="System.String">
             <value>XXXXXXXXX</value>
         </setting>
         <setting name="RedirectedUsbDevices" type="System.String">
             <value />
         </setting>
         <setting name="SavedConfigExists" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="UseAllMonitors" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="AudioPlaybackRedirectionMode" type="Microsoft.Virtualization.Client.RdpOptions+AudioPlaybackRedirectionType">
             <value>AUDIO_MODE_REDIRECT</value>
         </setting>
         <setting name="PrinterRedirection" type="System.Boolean">
             <value>True</value>
         </setting>
         <setting name="RedirectedDrives" type="System.String">
             <value>*</value>
         </setting>
         <setting name="VmName" type="System.String">
             <value>XXXXXXX</value>
         </setting>
         <setting name="SaveButtonChecked" type="System.Boolean">
             <value>True</value>
         </setting>
     </Microsoft.Virtualization.Client.RdpOptions>
 </configuration>


windows-server-hyper-vremote-desktop-client
monitors.png (6.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KarlieWeng-MSFT avatar image
0 Votes"
KarlieWeng-MSFT answered KarlieWeng-MSFT commented

Hello @GokhanVarol-4813

I think in vmconnect.config file, they don't have the setting for selecting monitors.

We can use RDP to connect to your VM, and modify the rdp file.

  1. First we need to turn on Enable Remote Desktop in VM ;

  2. Edit rdp file:
    85168-image.png

Reference article:

Supported Remote Desktop RDP file settings
Span Some (but not all) Monitors


Best Regards
Karlie


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (37.2 KiB)
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The Guest is running VPN and I cannot RDP into guest, it's blocked by the VPN.

0 Votes 0 ·

Hi,
sorry, after some research, that's the only solution I could think about now.



0 Votes 0 ·

Hi,@GokhanVarol-4813
We have not heard from you for several days, any update?

0 Votes 0 ·

It looks like a well defined config file, there gotta be a definition for it somewhere. For now i let it open all 4 monitors in full screen and i reduced 1 of these monitors to 1080p. If we don't get an answer here i will probably open a premier ticket with MS and update findings here.

0 Votes 0 ·

Thank you for the feedback , I will also keep searching for it.

0 Votes 0 ·
JW-3386 avatar image
0 Votes"
JW-3386 answered GokhanVarol-4813 commented

After having the exact same issue (using a VM on Hyper-V to connect to workplace VPN to avoid having to install the VPN software on my main OS install) I was unable to find any options for spanning specific monitors using VMCONNECT.exe.

I did find, however, that my VPN situation (GlobalProtect via Palo Alto) only masks routes with IPv4. I was able to use IPv6 addresses to connect using RDP to the VM which prevented the VPN from cutting off the RDP connection when activated. Then I was able to use the RDP options for spanning monitors.

I'm not familiar enough with other VPNs to know how generalizable this solution is, but thought it was worth a share, just in case.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I tried that, but the overall performance is not as smooth using rdp against multiple virtual machines with 8 monitors, a lot of screen refreshes, resizes, very hard to work with for me.

0 Votes 0 ·