Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to connect via remote desktop to a Windows XP machine (logging out the current user), do some stuff, and then logout the rdesktop session and having a user X which log in (from the front-end I mean).

I try to be clearer:

I've some windows XP machines which offers some interactive informations in public places. I need to rdekstop them to do some assistance, and then I'd like to logout and have the main user (the one which offers the service) logged back. I know there's a command for the windows prompt to achieve this, but cannot find it out!

share|improve this question
up vote 1 down vote accepted

The command I was looking for is:

tscon 0 /dest:console

which ends the current rdesktop session and reset the user as logged in! Found after days of research (and hours after posting here...)

share|improve this answer

If you are actually assisting the user, you can offer what is referred to as Unsolicited Remote Assistance, and send them an RA request. This way it does not log off the user who is logged on at the console.

Here is the link to run on your computer when you offer assistance:


You also need to change a group policy setting on the target computer:

Administrative Templates\System\Remote Assistance\Offer Remote Assistance Setting: Enabled, Allow users to remote control

share|improve this answer
Actually is not what I'm looking for... The fact is that I'm connected from a linux box via rdesktop, and need the command to write in command prompt that logs out me and log back an user. – carlesso Apr 21 '10 at 12:02

Your Answer


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.