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?
5 Answers
Download autologon from here:
Unpack it. Then open command prompt as administrator, navigate to the unpacked folder and do autologon /delete
This should remove all autologons.
/cd
7I 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?
4I tried this
Prepare computers for remote commands
- Read first here
- 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).
- 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:
Read
Check with
Get-NetConnectionProfile
- 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...
2Method 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.
1I 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.