Tuesday 25 June 2019

Windows 10 v1903 suspends Microsoft Outlook when Windows remote desktop user disconnects


It seems that Windows 10 Pro v1903 suspends Microsoft Outlook (365 or 2019 with latest office build v1908) when remote desktop user disconnects session (user closes session and does not log off).


In summary, we use remote desktop to connect to a clean install Windows 10 v1903 VM with Microsoft Outlook installed (365 or 2019 with latest build 1908). We set Outlook to Offline mode, queue 10 emails, turn Outlook back to online and quickly disconnect the session (not logging user out). I would expect that the emails should be sent. This however does not happen and is only sent when I log back into the remote session.


We can confirm that:



  1. It is not a Windows 10 power and sleep setting, as all screen savers, sleep modes and such are disabled.

  2. It is not a ‘System unattended sleep timeout’ as set out in this post. Bear in mind that the ‘suspension’ is immediate and does not take effect after 1 or 2 minutes.

  3. It is not the NIC that is suspended, as we ran console ping tests while disconnected, which continued to poll.

  4. But most importantly, an exact duplicate of the setup, using a Windows 10 Pro v1809 build, does not suspend Outlook build 1908, and the queued emails is successfully sent.

  5. Updated. Changed group policy settings' Session Time Limits as suggested by harrymc, but it was unsuccessful.

  6. Updated. The Terminal Server registry fix suggested here by harrymc , did not resolve the problem.

  7. Workaround This disconnect shortcut proposed by harrymc DID WORK as interim workaround.


We are therefore convinced the problem is with a setting change on remote desktop users in Windows v1903. We have found that only Outlook is so far affected.


Any comment that might point us in the right direction to restore the functionality to Outlook whilst the remote session is disconnected, will be highly appreciated.



Answer



The Microsoft article Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions says:



By default, Remote Desktop Services allows users to disconnect from a remote session without logging off and ending the session. When a session is in a disconnected state, running programs are kept active even though the user is no longer actively connected.



So it seems that someone changed the default on that computer.


You should check that appropriate Group Policy settings are set to Not configured or are configured as Enabled with the value of Never:




  • Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits




  • User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits




No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...