Enable User Environment for RDS Windows 2016/2019

Categories: Windows

The function to automatically start a program at logon is not working within RDS deployment on Windows Server 2016/2019.

To fix it we need to create two registry keys:

KEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

Name: fQueryUserConfigFromDC
Type:  REG_DWORD
Value: 0x00000001

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-tcp\

Name: fQueryUserConfigFromDC
Type: REG_DWORD
Value: 0x00000001

Reference: https://social.technet.microsoft.com/Forums/en-US/4ac892b6-2425-4ebb-9e5b-c541a85dff7b/remote-desktop-users-startup-program-doesnt-work?forum=winserverTS

«
»