Remotely Log off a User Session
Posted on 2011-03-09
Does anyone know of a command and/or easy process that would allow me to end a user's session via a command and/or batch process?
We have supervisors in our plants that go out onto our plant floor and potentially log in to a computer on the plant floor. Then when they get back in the office, they realize they might have forgot to log off their session on the plant floor. We only allow 1 session per user, so they have to go all the way back out to the plant before they can use their login again.
I would like to write a script of some kind that, given the user profile name, I can end that session. The only way I could think of doing it was with the ENDJOB...but you have to know the job number, which I wouldn't know.