I have a few windows machines (xp and 7) and I want to allow users to log in remotely using remote desktop (rdp, from any source win, mac, linux, etc.) if others have not logged in.
Currently there is two kind of behavior (if I recall correctly '1' corresponds to win 7 and '2' to xp):
- user logged in is kicked out without warning
- user is asked "Do you want to kick out the person logged in?"
I want to change this to following:
- if local user is logged in, say something like "local user is logged in, go away"
- if remote user is logged in, ask "do you want to kick out remote user?"
The above should be same for all log in attempts local or remote. The user logging in is a generic user i.e. the one logging in and logged in are the same user.
This answer is pretty close what I want to do (waiting time to very large). How do I do it in practise (xp and 7)?
Preventing Remote Desktop from kicking current user on Windows 7
edit:
edit2:
more progress… Is Remote\username same as ComputerName\username or username in windows 7/xp?
So basically, I have to check what is %userdomain% and modify logon enabled/disabled (or time delay to make behaviour a bit softer) according to that… I'll try that next week.
Best Answer
using the group policy editor, browse to:
look for Set rules for remote control of Remote Desktop Services user sessions and give it Full control with user permission in the options list.
so here the local user is to be promptd for confirmation when someone tries to log in. and it should apply for every login attempt.