May 05 2020 07:27 AM
The issue below was observed in v1.2.945 (x64) Windows, I'm unsure if this worked properly in a prior version, or on any other platforms.
In this example, Calculator is shared as a RemoteApp on a Windows Server 2016 Session Host, domain joined and when user sessions go idle for 10 minutes, or reconnects, re-entering their password is required. Normally, when a session goes idle for 10 minutes, the RemoteApp session will swap to the full session showing the locked screen and the user enters their password and returns to their session.
I'm experiencing an issue where the users session gets locked, and requires a password to return to the session, but the RemoteApp screen shows the application as if the screen isn't locked. Blindly entering the password and hitting enter, returns to a working session, and I can interact with Calculator again. I would expect in this scenario to get see the same behavior as being idle for 10 minutes, i.e. switching to full session showing locked screen so user can enter their password.
I'm happy to share my PSR's with Microsoft, if it'll be any help, but don't want to make them public. If you need anything else, please reach out.
Kind regards,
Sean
May 11 2020 09:21 AM
Hi @sberens , thanks for reporting the problem. I filed the following for tracking the investigation: 26365018 : Reconnected RemoteApp session not showing locked session password prompt
May 12 2020 02:33 PM
Hi @sberens, are you able to reproduce the issue by running the following command inside the remote session?
rundll32.exe user32.dll LockWorkStation
Thanks in advance!
May 12 2020 04:44 PM
@alvinlau Good day!
I published Command Prompt, and when running the specified command, the lock screen appears as expected. Password entry is seen and once confirmed, I'm returned to the command prompt.
Then, attempting the same steps described in my initial write-up, Disabling and enabling the network adapter on the local machine, the same symptom is seen on with the Command Prompt window. The remote screen seems to shift up and to the left slightly exposing black border in the right and bottom.
Clicking out off the RemoteApp and clicking it again will re-render the Title bar, showing old school themeless title bar, with (Reconnecting) in the title, and again, the window cannot be moved, minimized, or closed as none of the interface buttons work. Blindly entering my password and hitting return will return me to a working command prompt after 3-5 seconds and the command prompt window is no longer skewed and no longer has the additional border.
If you need anything else, please let me know.
Kind regards,
Sean
May 12 2020 09:05 PM
@sberens Thank you for your reply!
To help me understand the issue, I have couple more questions.
Did you wait for 10 minutes to trigger the session idle timeout before disabling the network adapter on the local machine? Did you try entering something other than the password when the RemoteApp window could not be moved, minimized, or closed?
Regards,
Alvin
May 12 2020 09:33 PM
@alvinlau No waiting, at any time I can attempt the network adapter flip and see this behavior.
Interestingly, taking your advice and trying to enter something else, it seems that the ENTER key is doing the magic and bringing the session back to usable! I had assumed the lock screen was simply not rendering, but there must be something something else going on behind the scenes.
Any idea how we further understand what's happening in this scenario?
Thanks for your help so far Alvin, it's really appreciated.
May 13 2020 11:25 AM
Hi @sberens! Do you have the WVD side-by-side stack installed on your session host? If so, what is the version? Meanwhile, let me set up a Windows Server 2016 and see if I can reproduce the issue on my side.
Thanks,
Alvin
May 14 2020 09:51 AM
@alvinlau Good day!
When running qwinsta, there's a sessionname of rdp-sxs200326004 on the two Session hosts configured for the Host pool publishing the Apps used in our scenario.
An FYI that the Server 2016 instances were deployed from the Azure portal gallery, and are not custom images, if that helps.
Thanks again, and if you need anything else, please reach out.
Kind regards,
Sean
May 14 2020 06:15 PM - edited May 15 2020 10:21 AM
Hello @sberens!
I installed the same side-by-side stack on my VM running Windows Server 2016 with all the updates installed.
I could almost reproduce the issue. When auto-reconnect was done, I saw that the title bar of the remote Command Prompt window changed to the old themeless one; However, it turned back to normal in less than a second, and without typing anything on my keyboard, mouse input started working again.
Would you mind if you create a test account on your WVD deployment and let me remote in?
Also, what is the Windows version of your local machine?
Thanks,
Alvin
May 18 2020 02:21 PM
@alvinlau Good day!
Thank you for attempting to repro in your environment, and I'm glad to hear it worked as we would expect.
Unfortunately I cannot provide access to the environment as it is production, but I will try to reproduce in my sandbox and will follow up by Wednesday.
I'm running Windows 10 Pro 1909 (OS build 18363.836), and Remote Desktop v1.2.945.0 (x64).
Kind regards,
Sean
May 21 2020 05:35 AM
@alvinlau Good day!
I was able to validate that my sandbox environment exhibits the same behavior as your environment. Reconnect popup appears, then shortly after reconnecting, the window theme bounces to classic, then it returns to normal and I can interact with the App, and the UI controls (Min/Max/Close). No key presses required! (I also learned that the space bar will return the session to usable, in the original scenario)
I don't know that it would make a difference, but my production host pool has 2 session hosts, but my sandbox only has one.
I'll continue to troubleshoot and compare the two environments for differences, but if you have any recommendations, please don't hesitate to reach out.
Thank you again for your time.
Kind regards,
Sean
May 21 2020 01:06 PM
Hi @sberens!
Thanks for trying it out in your sandbox environment.
I didn't know you had two session hosts in your production host pool. Are you seeing the same issue from both of session hosts? Have you tried connecting to your production session hosts from another local machine?
I'm thinking maybe the network connectivity between your local machine and the production host pool triggered some timing issue in the WVD Client app (msrdc.exe).
If possible, can you please collect Time Travel Trace for me to investigate?
Since Time Travel Trace is actually a memory dump, it may contain private information. So, please do NOT share it publicly.
Regards,
Alvin