If while a domain admin is logged in via RDP to a user's workstation someone connects via TeamViewer, specially with the lock screen option active, the domain admin session gets "hijacked". Is there a way to avoid it?
If you are connecting to a user session that is already open, it will always hijack the user session. There is, unfortunately, no possibility to set a "grace period" before the black screen is enabled.
Yes, you can prevent this from happening by connecting to the server ID, instead of the user ID.
The server ID is always online and accessible.
It can be found during the connection by the following:
Hope this could help!
My example is the other way. Yes, with the server ID I connect anyway but if there's a user using the workstation i'll get that user session and the user previously connected via RDP will get a black screen in his own session. At least the user should have a few seconds to close his session.