Remotely disconnecting a Terminal Services Session

I tried to logon to one of my clients servers this morning and once I’d entered the user name and password I just got a blank screen.

I tried connecting to the console session and had similar luck. I’ve seen this one or two times before and normally a reboot sorts it out and I put it down to Terminal Services getting itself or confused

But I didn’t want to restart the server during the day as I’d have all the hassle of getting everyone to stop what they were doing and this particular site has lots of remote users

You can’t restart the terminal services service so what was I supposed to do?

I found this blog post,

Ingo Rammer’s Weblog : Remotely disconnecting a Terminal Services Session

I used

QWINSTA /Server: name/IP

to list the sessions

Once I’d identified the session I wanted to boot I used

RWINSTA sessionid /SERVER: name/IP

To remove the session

I was then able to log back into the server!

The following two tabs change content below.
Andy Parkes is Technical Director at Coventry based IT support company IBIT Solutions. Formerly, coordinator of AMITPRO and Microsoft Partner Area Lead for 2012-2013. He also isn't a fan of describing himself in the third person.

Latest posts by Andy Parkes (see all)

5 thoughts on “Remotely disconnecting a Terminal Services Session

  • This is useful

    I’ve had this problem a number of times.

    I have found that you can also work around it by specifying an initial program in the terminal services client and providing just “explorer.exe”

  • Also – if you’ve got more than one 2003 box with “Terminal Services Manager” installed at the client site, you can use it to manage terminal services on the problem box, and reset the connections through.

  • Thanks for that Paulie…another one to remember

    What i didn’t put in this post was i tried it remotely first (using an IP address) with no success. It just returned no sessions

    I logged onto a PC actually on the domain and tried it (using a name) and it worked

    I didn’t include this in the post as i did to experiment more to figure out why it didn’t work

    I’m suspecting authentication at the moment

  • Cheers Nick

    Your quite right and that would usually be the course of action i’d follow…but they just had the single SBS server

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.