When using Resilio Agent on a Windows server with multiple access, Agent UI auto-start spawns tens of processes for each user. As only one user is able to use UI at a time, other users see the error about lost connection to the Resilio Agent Service.
The solution is to disable auto-start for the Agent UI process.
Run this command from PowerShell with elevated privileges. Note, this will prevent Agent UI from auto-starting for all users.
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "Resilio Connect Agent"
Use the following snippet if you need to revert the changes
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "Resilio Connect Agent" -Value '"C:\Program Files\Resilio Connect Agent\Resilio Connect Agent.exe" /MINIMIZED'