Windows 10 remote desktop session logs off

15

5

I have upgraded to Windows 10 on a PC at home. But now whenever I RDP to it, and press Disconnect, instead it logs off. So when I connect again it logs in again, and all of the applications that I had open are closed.

I have already checked the settings in the Registry, and the timeout is Never.

In Windows 7, this didn't happen, and I could disconnect and remain logged in.

Can anyone help please?

Mark Nash

Posted 2015-09-08T12:19:15.523

Reputation: 153

What happens when you're logged in using RDP and you login from the computer as a local user? Your RDP session should obviously disconnect, but do the open applications remain open? – Chirag Bhatia - chirag64 – 2015-10-22T12:15:53.353

Answers

4

I have tried closing RDP on Windows 10 virtual machine, and I cannot duplicate your problem.

Perhaps the difference is that I have applied this registry fix because I was getting the message of "the connection cannot proceed because authentication is not enabled" :

In Windows 10 Microsoft changed RDP’s defaults. They modified the default for SecurityLayer from 0 to 2. Even if you go into the user interface and disable: “Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)” Still doesn’t change that value to a 2.

Simple fix:

  • Open RegEdit
  • Navigate to this Key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp
  • Change SecurityLayer to a zero
  • Reboot and done

harrymc

Posted 2015-09-08T12:19:15.523

Reputation: 306 093

This issue I also experience in Windows 10. I think it is a Win 10 bug. – Shiro – 2015-10-25T14:57:35.550

@Shiro: Sorry, I meant Windows 10 - fixed above. I cannot think of any other difference between your case and mine, except for differing hardware & drivers. – harrymc – 2015-10-25T15:00:12.850

After I applied your registry edit. I seem like remain my previous session. Thank you very much! – Shiro – 2015-10-26T03:17:20.343

This question is not belong to mine :) I just start a bounty because I have same problem. Thank you so much~ – Shiro – 2015-10-26T13:58:48.480

3

Disable the "Session Time Limits" policies on the Windows 10 PC at home.

  1. Open gpedit.msc
  2. Navigate to:
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
  3. Disable any active policies.
  4. Navigate to:
    User Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
  5. Disable any active policies.
  6. Reboot the computer.

Steven

Posted 2015-09-08T12:19:15.523

Reputation: 24 804

1

Instead of disconnecting, just close the RDP application. This will keep you logged in on the remote computer.

Also, you'll noticed that reboot and shutdown are not part of you options. This you'll have to handle with the shutdown command.

GeekyDaddy

Posted 2015-09-08T12:19:15.523

Reputation: 400

4Thanks for the suggestion, but unfortunately this doesn't help, the session is still logged off. – Mark Nash – 2015-09-09T22:07:51.700

When you just quit the RDP without logging out it's not suppose to log you out. Therefore you have a something of an odd duck. I found an article about how to change this. http://serverfault.com/questions/580916/stop-log-off-when-disconnected-from-rdp-session and http://serverfault.com/questions/99258/remote-desktop-sessions-unwanted-automatic-log-off-after-period-of-time

– GeekyDaddy – 2015-09-09T23:57:15.107

0

Methinks this is a Windows 10 issue or perhaps Microsoft would call it a fix as it prevents dead sessions and potentially stopping other users logging in by running out of TS licenses.

Crimitorii

Posted 2015-09-08T12:19:15.523

Reputation: 9

0

You can try the latest Remote desktop client here : https://support.microsoft.com/en-us/kb/2923545 if you are on insider preview and installed last update, uninstall last update, I had a lot of trouble IMHO. If not check windows has the latest patchs.

Deltaforest

Posted 2015-09-08T12:19:15.523

Reputation: 17

That download is specifically for Windows 7. – Ramhound – 2015-10-22T16:38:08.013

we don't know the client OS version. – Deltaforest – 2015-10-23T07:34:57.853

So ask before answering – Ramhound – 2015-10-23T10:11:57.600