Forum Discussion
Remote Desktop not working in Admin Center
- Nov 30, 2018
I could fix this problem by enabling "Allow users to connect remotely by using Remote Desktop Services" policy settings (gpedit.msc or gpo). This policy add fDenyConnection=0 value to "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services", so $resgistryKey never set to null.
I also had problems with remote desktop connection not working on-premises. And Settings > Remote Desktop page show "Get-Member" errors.
But when setting up in the Azure VM environment, Remote Desktop Connection worked without any problems. Therefore, when comparing Remote Desktop settings in the registry, I confirmed that the following two values exist on the Azure VM side and do not exist in the on-premise side clean installation environment.
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
KeepAliveEnable REG_DWORD 1
KeepAliveInterval REG_DWORD 1
I created the same registry by running these command line on a remote server on-premises, the problem was solved. Settings > remote desktop page's error was also gone. (You do not need to restart the server.)
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "KeepAliveEnable" /t REG_DWORD /d 1 /f
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "KeepAliveInterval" /t REG_DWORD /d 1 /f