About Author

Justin Wendlandt
Justin Wendlandt
I work for Wells Fargo, play a lot of video games, and program in many languages. [ more ] E-mail me Send mail

View Justin Wendlandt's profile on LinkedIn

Calendar

<<  May 2008  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Recent Posts

Recent Comments

Comment RSS

Stock Quotes

WFC 29.60 +0.69 (+2.39%)
NVDA 23.78 +1.71 (+7.75%)
MSFT 30.4501 +0.5201 (+1.74%)
HAS 37.19 +0.60 (+1.64%)

Xbox Gamer Card

Jwendl
Jwendl
Gamer Score: 4525
DYNASTY WARRIORS 6 (220) GTA IV (80) Culdcept SAGA (25) Rock Band (270) Overlord (420) Assassin's Creed (490) DEAD RISING (440) Halo 3 (535) Guitar Hero II (90) Oblivion (390) Blue Dragon (25) Eternal Sonata (30) Tony Hawk's Project 8 (135) Gears of War (470) Crackdown (405) CSI-Hard Evidence (0)
Offline
2008-05-15T00:37:59-05:00
Last seen 15 hours ago playing DYNASTY WARRIORS 6

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Creative Commons License

Header Photo

Terminal Services Management Hints

January 8, 2008 01:38 by jwendl

If you allow telnet access and your RDP sessions are all locked up (from pesky admins disconnecting and not logging out), there are a few tools that you can use from the CLI. One tool is called query, this tool allows you to see who is all logged in. The usage is 'query session' and you will get the output of who is logged in and what ID's they are using.

Another command is tsdiscon and you pass it in the session_id of the person you want to disconnect. Mind you though using this command sometimes doesn't disconnect the user because the connection could be hung up.

If that is the case then there is the ever so wonderful 'tsshutdn /reboot', which (provided you give it a few minutes) will restart the terminal services client.

All of these work really well over a connection that uses SSH (such as FreeSSHd or Cygwin).

More information can be found at http://technet2.microsoft.com/windowsserver/en/library/2b82a2b9-e226-40e0-bacc-cb564bd4c1c11033.mspx?mfr=true and http://support.microsoft.com/kb/320188


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5