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:
progress... How do I disable the 30 second delay on Remote Desktop connections to Windows 7 when a user is logged in?
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.