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)?
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.