Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Would it be possible from a remote computer log out a user sitting on a specific computer?

That is, can I a Administrator of a small network with some PC:s running Windows 7, log out a certain user on that LAN on a specific PC from another PC which is not even on the same LAN?

Sometimes I am working out of office, but would like to be able to log out users which is currently logged in to computers on our office LAN.

I have seen a lot of questions regarding how to log out users that has logged in to my own computer via remote desktop, but I want to be able to do the other way around.

Thanks!

share|improve this question
    
I assume you are using a VPN or other tunnel to connect to your lan? –  Frank Thomas Mar 16 '13 at 20:28
add comment

1 Answer 1

Easiest thing to do if you don't mind rebooting the machine is to issue a shutdown -r -t 0 via psexec:

psexec \\{computer-name} -u Administrator -p {administrator-password} C:\windows\system32\shutdown.exe -r -t 0

I think this may work to logout the currently logged in user but have not tried it:

psexec \\{computer-name} -u Administrator -p {administrator-password} C:\windows\system32\shutdown.exe -l -t 0

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.