Log off only specific user on XP Pro

  • Thread starter Thread starter Markko Meriniit
  • Start date Start date
M

Markko Meriniit

I'm using XP Pro + SP2 with Fast User Swithing enabled and I'm looking a
way to force log off one specific user from 2 or 3 users who are logged on.
When searched some program that does this I found Poweroff and Active Exit,
but neither of them doesn't do it. I can only log off currently active user
but this isnt what I want. Is it doable or do I want too much?

Markko
 
Doug Knox MS-MVP said:
Start, Run and enter TASKMGR.EXE Go to the Users tab.

I kind of overlooked this because I looked for automatic way. But thanks
for remembering, its a variant to use if I can't find nothing else.

Markko
 
There is the command line tool, LogOff, but you would have to know either the session ID or the sessionname to use it to log off another user. The sessionname is not the username.

Click Start, Run and enter CMD Enter LOGOFF /? for the command line parameters.
 
Doug Knox MS-MVP said:
There is the command line tool, LogOff, but you would have to know either
the session ID or the sessionname to use it to log off another user. The
sessionname is not the username.

Thank you :-) Guess I'm too strongly under impression that windows
doesn't have any utilities with it and focused for seraching third party
utilities. I think I can do something about session ID when I parse
"tasklist /v" output.

Markko
 
You're welcome. You may also want to look at the QUERY command. Oddly enough, when I try QUERY USER or QUERY SESSION, it says not a valid command. For whatever reason, this file isn't in Windows or Windows\System32, as it should be, but there is a copy in the Windows\System32\dllcache folder.
 
Back
Top