Windows 10 "auto login" after connecting via rdp (mstsc)

2

1

After Upgrading 2 of my PCs (same LAN network) to Windows 10 (coming from Win8.1) i tried to setup my old Remote Configurations.

When i connect via rdp (mstsc.exe) I'm getting the active session of the other PC (as i was used to in Win8.1), I see the desktop and after that I immediately get disconnected with an Error Message. Meanwhile i can see the other PC (which I am connecting to via rdp) doing an "auto" login which is the reason I'm getting disconnected in the rdp session.

Sadly my System is in german and i can just try to translate the error message:

"The remote desktop session has closed. The connection has been disconnected because another user has connected to the remote machine" (something like this)

I succesfully managed to use a tool to configure multiple logins of the same user, which isn't the solution I'm looking for, because I definitly want to get the "active" session of the user I am logged in with.

Any help is appreciated.

//Edit: It doesn't matter if I'm connecting from PC1 to PC2 or vice versa... Still same behaviour

//Edit2: PC1 is Windows 10 Education N, PC2 is Windows 10 Pro N

//Edit3: Something to add: I have no passwords set on my Windows Accounts and I enabled the Option to allow Connections without Passwords (secpol.msc -> Local Policies -> Security Options -> Accounts: Limit local account use of blank passwords to console logon only -> set to disabled ... As I was playing around some more I thought "let's try setting a password and retry rdp ..." Finally the remote machine is not doing auto logins anymore. Anyway that's not the solution i was looking for. I don't want to be forced to use passwords since it worked that way since i can remember using Remote Desktop.

Any ideas on how to get RDP without using passwords working again?

sobrino

Posted 2015-08-25T18:07:22.523

Reputation: 29

Answers

0

I can verify this problem as well. The closest solution from Microsoft I could find is: this.

EDIT 03 August 2016: I edit my post to say that the issue seems to be solved with the Windows 10 Anniversary Update.

RDPUser

Posted 2015-08-25T18:07:22.523

Reputation: 11

0

Download autologon from here: https://technet.microsoft.com/en-us/library/bb963905.aspx

Unpack it. Then open command prompt as administrator, navigate to the unpacked folder and do autologon /delete

This should remove all autologons.

/cd

cdavid

Posted 2015-08-25T18:07:22.523

Reputation: 845

I got an Error Message saying "Usage: autologon <username> <domain> <password>" – sobrino – 2015-08-26T16:54:08.523

I have added some informations to the question (Edit 3). – sobrino – 2015-08-26T17:10:43.747

For Edit 3 - you can store the password in the RDP file. Open MSTSC.exe -> Show Options -> enter computer / username -> save as... -> Connect -> Enter user/pwd and tick "Remember my creds". Detailed steps: http://www.nextofwindows.com/how-to-save-password-in-a-remote-desktop-connection-in-windows-8

– cdavid – 2015-08-26T23:30:23.013

For your first error -> autologon /delete works on my machine - it says AutoAdminLogon disabled. Maybe it's related to you not having a password? – cdavid – 2015-08-26T23:31:01.827

Thanks for your reply. I know that passwords can be stored in the rdp file. I wouldn't mind using this for the remote connections, but i don't want to use passwords on my local machine. And as i want to work on the same session (not at the same time), I can't just use another user for that. I reported that issue to M$ ... let's see what they come up with. – sobrino – 2015-08-27T06:42:45.333

2 questions: 1) how did you report it? 2) Can you please give me a detailed step-by-step guide to reproduce this issue? (I am not sure how you set up the accounts without password) – cdavid – 2015-08-27T16:04:59.960

>

  • I wrote something to the windows insider board, but it seems that this was the wrong place. I have to post it somewhere else according to a guy who answered me link 2) 1. Execute secpol.msc from Win+R 2. Navigate to Local Policies -> Security Options 3. Locate the entry "Accounts: Limit local account use of blank passwords to console logon only" and set it to "disabled" 4. Remove pwd of Windows user 5. Connect via rdp 6. Error
  • – sobrino – 2015-08-27T19:13:06.033

    0

    I can verify this bug. Win 10 PCs without password on local account and disabled "Limit local account use of blank passwords to console logon only", within a second or so I get disconnected by the local machine which seems to auto login by itself when a connect with remote desktop.

    I have "fixed" it using VNC and TeamViewe while I wait for a bugfix from Microsoft. Have you heard if there is any prefix or fix yet?

    raffe

    Posted 2015-08-25T18:07:22.523

    Reputation: 1

    Sadly I haven't heard about a real fix yet. I'll let u know here and at the technet page once i know about how to fix this. Would be nice if you could also tell me if you manage to find a solution other than 3rd party tools :) – sobrino – 2015-09-20T13:13:42.170

    If you first do a Ctrl-Alt-Delete and choose "Switch user", after that you can remote access that computer. So, if we can do that remotely (get a Win 10 into that "Swtich user mode"), then we can also remote access it. – raffe – 2015-09-20T20:54:09.740

    I tried tsdiscon, but it don't seem to be the same as "Swtich user command" – raffe – 2015-09-20T20:59:56.050

    Thx for letting me know. I am going to try this later and maybe do a bit of research myself about remote switching users. – sobrino – 2015-09-21T08:23:24.113

    0

    I tried this

    Prepare computers for remote commands

    1. Read first here http://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/
    2. Do this on both computers (be sure you know what TrustedHosts will do! Maybe you want to replace the * with a comma-separated list of IP addresses or computer names).
    3. open a PowerShell window as Administrator and run this

    Enable-PSRemoting -Force

    Set-Item wsman:\localhost\client\trustedhosts *

    Restart-Service WinRM

    Enable-PSRemoting problems?

    If you get problems with Enable-PSRemoting -Force that say something like "...firewall exception will not work since one of the network connection types on this machine is set to Public...", maybe with a VPN connection:

    1. Read http://www.tenforums.com/tutorials/6815-network-location-set-private-public-windows-10-a.html

    2. Check with

    Get-NetConnectionProfile
    
    1. Run something like this (but with your network name)
    Set-NetConnectionProfile -Name "Unidentified network" -NetworkCategory Private
    

    Test remote commands

    Open a PowerShell window as Administrator and run this on the computer that will connect with Remote Desktop to 192.168.0.100 (or COMPUTERNAME)

    Test-WsMan 192.168.0.100
    Invoke-Command -ComputerName 192.168.0.100 -ScriptBlock { explorer } -credential admin
    Invoke-Command -ComputerName 192.168.0.100 -ScriptBlock { dir } -credential admin
    

    That works (File Explorer opens, dir show content on remote PC). But if I try

    Invoke-Command -ComputerName 192.168.0.100 -ScriptBlock { tsdiscon } -credential admin
    Invoke-Command -ComputerName 192.168.0.100 -ScriptBlock {  c:\windows\system32\tsdiscon.exe  } -credential admin
    

    Nothing happens :( But maybe you will find something...

    raffe

    Posted 2015-08-25T18:07:22.523

    Reputation: 1

    Maybe https://technet.microsoft.com/en-us/library/hh849747.aspx but I need to go, so I don't have time to test right now...

    – raffe – 2015-09-21T14:23:21.860

    I tried -ScriptBlock { query session } and then -ScriptBlock { tsdiscon 1 /v }. The session gets disconnected, but it auto login again. – raffe – 2015-09-21T18:12:50.180

    0

    Method 1. I have success by SignOut from the PC itself first. Then remote login from another PC or smartphone. That way the desktop won't auto login itself and kick the remote session.

    I'm not sure why but I guess the PC won't support continuous login session.

    Method 2. Previously I don't have password to login for the user. After setting one, I'm able to login without being kicked out.

    checksum

    Posted 2015-08-25T18:07:22.523

    Reputation: 1 304

    I am pretty sure I tryed that when I first encountered the problem. If this method is working now, they maybe have changed something since. Thx for your feedback! Still waiting for a real fix tho. – sobrino – 2015-10-15T12:29:05.520