PDA

View Full Version : Log off only specific user on XP Pro


Markko Meriniit
August 17th 06, 02:20 AM
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
August 17th 06, 08:14 AM
Start, Run and enter TASKMGR.EXE Go to the Users tab.

--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.

"Markko Meriniit" > wrote in message ...
> 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
>
>

Markko Meriniit
August 17th 06, 09:13 AM
>"Doug Knox MS-MVP" > wrote in message
...
>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

Doug Knox MS-MVP
August 17th 06, 04:08 PM
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 Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.

"Markko Meriniit" > wrote in message ...
> >"Doug Knox MS-MVP" > wrote in message
...
>>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
>
>

Markko Meriniit
August 17th 06, 04:29 PM
>"Doug Knox MS-MVP" > wrote in message
...
>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

Doug Knox MS-MVP
August 17th 06, 10:52 PM
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.

--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.

"Markko Meriniit" > wrote in message ...
> >"Doug Knox MS-MVP" > wrote in message
...
>>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
>
>

Google