Saturday, June 13, 2015

windows 7 - How to force a login for an administrator when using Remote Desktop Connection?


Scenario:


I am at work. I want to remote desktop into my machine at home. Problem is, my 5-year-old daughter is playing games on Starfall.com (or something similar) on her (non-admin) account. When I attempt to connect I see this message:



Another user is currently logged on to this computer. If you continue, this user has to disconnect from this computer. Do you want to continue?



I click Yes and then see



Please wait for 'UserName' to respond



This presents my daughter with an Allow/Disallow dialog on whether to let me connect. She clicks Disallow (or No or whatever it says) and then I see



'UserName' has denied your request



Question:


How can I force my account to log in and disconnect her session?


Additional Info:


My account is an administrator account. My daughter's account is a non-administrator account. Home machine is Windows 7 Pro with fast user switching enabled.


Note
In my case, turning off fast user switching is not an option. Kyle pointed out in his answer that turning it off would allow the admin to force another user off. I'm accepting his answer and it identifies the issue, even though it doesn't solve my exact problem. I need to keep fast user switching's ability to change accounts without closing the previous account's session over being able to force myself to connect.


Answer



Turn off fast user switching, it causes the prompt box to appear for the other user regardless of their group memberships.


EDIT: I could not find anything in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Terminal Server Client (or HKCU) that will disable this behavior.


Additional Info: Here's an article from MS on the how RDP acts with and without Fast User Switching enabled, for various user scenarios. It's for XP, but the rules still apply.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...