Windows 7 - force existing user session to logoff, not disconnect, at log on

12

With Windows XP, when logging in to a computer, if another user was already logged in, you were told who it was and asked if you wanted to end their session:

"The user X is currently logged on to this computer. If you continue this user's Windows Session will end and any un-saved data will be lost. Do you want to continue?"

In Windows 7, when another user attempts to log in (whether by remote desktop or at the console), they see this message:

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

If you click Yes, you are asked to wait for a response from the current user. After a 30 second time out, if there's no response, you are logged in, and the previous user is disconnected. This is the change from XP - they are not logged off, they are disconnected, and their programs continue to run.

This is a problem for us on some of our factory floor workstations. We would like to retain the XP style behavior, and force a logoff of the existing user, as opposed to allowing programs that are now hidden from view to still execute in the background.

We already have the "Hide entry points for Fast User Switching" policy enabled, but that does not prevent two simultaneous user sessions. What can we do to force a logoff of the existing user in Windows 7?

Pat Clancey

Posted 2013-10-11T15:07:18.423

Reputation: 121

Answers

7

This might work, depending on your permissions:

  1. Open Task Manager

  2. Processes Tab, Show Processes from all users (it's on the bottom left)

  3. Users Tab, select the user you want to kill processes on, Logoff

  4. You'll see a prompt asking to confirm logging them off, choose logoff

I've just verified this between a regular user account and admin account on my network.

Here's a link with screenshots of how to do this, step by step.

Michael H

Posted 2013-10-11T15:07:18.423

Reputation: 498

@PatClancey I think you can script the logoff in a semi-automatic way by following this answer: http://superuser.com/questions/269574/how-can-i-automatically-log-out-users-from-a-windows-machine/269579#269579

– Jeroen Wiert Pluimers – 2016-06-08T09:05:22.993

3That would work, but I need this to happen automatically. – Pat Clancey – 2013-10-14T17:08:26.877

2

Create a group policy for those system(s) that sets a low timeout for logging off disconnected users.

To do so, check out the Computer Configuration > Policies > Administrative Templates > Windows Components > Terminal Services > Sessions section of group policy and enable Set time limit for disconnected sessions, and set a timeout (1 minute).

That was after being 'Disconnected' for a minute, they'll be logged off.

Ƭᴇcʜιᴇ007

Posted 2013-10-11T15:07:18.423

Reputation: 103 763

1

@PatClancey, So how did you manage to solve this? Please post an answer. 25k views and no working solution?

– Pacerier – 2015-03-20T13:25:39.407

1In my local group policy editor, I don't have a "Policies" folder under "Computer Configuration". I found "Set time limit for disconnected sessions" in Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Session > Session Time Limits, but that only works to log off users from a remote desktop connection - not a disconnected user at the console. How can I set the Terminal Services policy you mention? – Pat Clancey – 2013-10-14T17:06:55.400