1

This is a big unanswered question. Originally found at "Windows 7 - force existing user session to logoff, not disconnect, at log on", the question, with 75k views and no solution, is as follows:

We're on an enterprise environment using Windows 7. Some users will connect from one workstation to another using RDP. If the target workstation has no users logged in, there are no issues. If the target workstation has a different user logged in, it will prompt the connector:

"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?"

When selecting "Yes", it will prompt the current connected user if they wish to disconnect now or deny the connection attempt. If they select to allow the attempt (or if the request times out), they are not logged off-- instead, their session is "disconnected" and their programs continue to run.

This behavior interferes with some programs that can not function properly when there are simultaneous sessions. The behavior we're looking to change is to have RDP force the current connected user to be logged off instead of disconnected. I know it is possible because our environment previously was set up to do exactly that, but someone somewhere changed something and this behavior reverted back to default behavior.

Things we are NOT LOOKING TO DO are:

  • Set a time out to automatically log a user off
  • Remotely run a log off script if a user is logged in
  • Use task manager to log a user off remotely
  • Use a constantly-running script to to log a user off automatically...

0 Answers0