First of all, it is not really a Windows Virtual Desktop problem, this has been a Microsoft Windows setting for many years now. However, when publishing a Desktop or a RemoteApp from a Windows Virtual Desktop host pool where the session host VMs running Windows 10, there are no visible borders around the windows by default.
For example, see the blow screenshot. A File Explorer window is open, with on top of it the Microsoft Paint application. You cannot see where one window ends and the other one starts.
This can easily be fixes by changing a registry key value under HKEY_CURRENT_USER and logoff and login again.
You can test it by running the following command in your Windows Virtual Desktop session and logoff and login again.
reg add "HKCU\Control Panel\Desktop" /v UserPreferencesMask /t REG_BINARY /d 9032078010000000 /f
To apply this setting to all users, you can add the registry key to the Default User profile. However, keep in mind that in this case the setting will only be applied to users that will login for the first time and not already have an existing profile.
To add this registry key to the Default User profile, login as Administrator to your “Master VM” or session host VM. Start an elevated DOS prompt and run the following commands.
To load the Default User hive run:
reg Load HKLM\WVD C:\Users\Default\NTUSER.DAT
To add the registry key run:
reg add "HKLM\WVD\Control Panel\Desktop" /v UserPreferencesMask /t REG_BINARY /d 9032078010000000 /f
To unload the Default User hive run:
reg Unload HKLM\WVD
Group Policy Preference
You can also apply this registry key via a Group Policy Preference. But keep in mind that in this case the setting will apply the second time the user will login and not the first time.
Open the Group Policy Management Editor, open or create a GPO that will apply on the Windows Virtual Desktop host pool. Navigate to: User Configuration > Preferences > Windows Settings > Registry
Add a New Registry key with the following parameters;
Action : Update
Hive : HKEY_CURRENT_USER
Key Path : Control Panel\Desktop
Value name : UserPreferencesMask
Value type : REG_BINARY
Value data : 9032078010000000
After adding the setting to the GPO, run gpupdate /force in an elevated Command Prompt on every session host VM in your host pool.
Once the setting have been applied to the user, every window now has a border, as you can see in the screenshot below.
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.