Forum Discussion
VM Connection very often gets disconnected
Hello nicolasriderelli
We had struggles with this issue for one of our customers for quite a while.
1 hostpool with 4 AVD-hosts, ca 50 users.
A mix of both Remoteapps and Full Desktop. Not every user had the issue, but at least half of them suffered from it every other day, multiple times a day.
We found that when you install ”Remote Desktop Client” on a PC, there is a Scheduled Task created that refreshes your AVD feed every 4 hours or so.
And when looking in Azure Insights Monitor I could see that some of the users got the: ConnectionFailedClientDisconnect (-2147467259) error exactly 4 hours apart. But some had it more frequently. It was not adding up..
Seems like when you close MSRDC, and the scheduled task runs, it also tries to update MSRDC if there’s an update available.
The customer who had this issue were not local admins on their computers. So if they had closed the MSRDC window and the Scheduled task ran, they would get disconnected with no warnings or error messages. And Azure Insight Monitoring would capture the ConnectionFailedClientDisconnect (-2147467259) error with the same timestamp as the scheduled task had been executed.
So our solution was the following:
We did not make the users local admins on their computers, but we reinstalled Remote Desktop Client and choose the ”per-user” option (Install only for me) instead of the ”per-machine” install as we had done before.
And then we created a GPO with the registry Key>
HKLM\Software\Microsoft\MSRDC\Policies
Type: REG_DWORD
Name: AutomaticUpdates
Value: 2
The customer has not had the issue since. And the MSRDC client autoupdates with no issues even that the users are not local admins.
Hope this can help others out there.
Thanks