The remote desktop session terminates upon closing.
The remote desktop session terminates upon closing.
Hello, I'm facing an issue and I'm not sure if this is the right forum to ask. Still, I'll try anyway. I connect to a server via Remote Desktop on a client machine. After logging in, it prompts for a username and password, which I handle perfectly. However, when I close the remote desktop window and try to access again, it asks for those credentials once more. I'm confused because this happened only recently and I need a solution. I've already changed our group policy settings to prevent sessions from logging off automatically, even if they're active. Thank you all, and please accept my apologies if my English or terminology is unclear.
When I close the window, it shuts off automatically, yet my apps remain active. The issue is that closing the window beforehand kept me logged in, so reconnecting didn’t require re-entering credentials. It seems the system isn’t saving my login details for future logins, even when saved in the Remote Desktop console. I’m trying to understand what’s happening and appreciate your help.
Ah I see, although I still think its a huge security risk to be saving your login details. Do you own the device you are remotely logging into? If not, I wonder if they have somehow blocked saving the details to force you to manually login each time. Not heard of it (I wouldn't even think it possible) but you never know with all the security concerns these days.
It's a server with access, but I'm unsure which adjustments will keep me logged in during remote desktop sessions. I've already tested various options without success, which is why I'm reaching out for help.
Ensure the RDP file contains valid credentials. If you altered the password on the host machine, refresh the rdp file accordingly.
Open gpedit.msc on the target system.
Adjust the settings under Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Security. Set Always prompt for password when connection is disabled.
Execute gpupdate /force and restart the server.
Each time you close the RDP window, the session will disconnect. This behavior should match screen locking; unless configured otherwise, sessions will remain open until manually closed.
I appreciate your effort in assisting me. The approach Blake mentioned has been my focus, though it wasn't sufficient on its own. I managed to resolve the issue yesterday. Here’s what I did (in case others encounter similar challenges). We’re using Windows Server Essentials 2016, which has certain restrictions. To allow more than two simultaneous connections to the Terminal Server, we employ a tool called RDP Wrapper. During its setup, I noticed the Authentication Mode was set to GUI Authentication Only instead of the default RDP Authentication. I changed it accordingly. Now, even after disconnecting, I remain logged in with my credentials properly saved. I hope this helps someone facing the same problem.