About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Logoff Remote Desktop Session Remotely

February 15 2008 6:00AM

I’ve been working for a client where I’m connected to their VPN much of the day working remotely on machines located at the clients site. Occasionally, I’ll run into a Remote Desktop connection limit where I can’t login and infrequently, one of the logged on sessions will be my own. At that point, I’ll occasionally try using mstsc.exe with a /console switch to try and disconnect an inactive or unused session but in this instance I was getting this error:

This computer can’t connect to the remote computer.

The next thing is to try and logoff the session remotely using two Windows utilities, quser.exe and logoff.exe. With quser you can find out the session names of the logged on users and use that information in a subsequent call to logoff.exe to close the session.

Console output of quser.exe and logoff.exe

At this point, I can successfully log back in using Remote Desktop or my current favorite remote client Terminals.

FacebookDel.icio.usDigg It!

Tags: , ,

Comments (4) -

2/15/2008 5:08:31 PM #

I use qwinsta and rwinsta for this. Good to see another way, though.

weblogs.asp.net/.../46776.aspx

Dan Miser

4/25/2008 6:25:18 PM #

Hey Steve,

I didn't know about quser.exe and logoff, is that from www.microsoft.com/.../details.aspx"> Server 2003 Admin Tools pack?  What I like about qwinsta and rwinsta is that it comes with Windows XP and when I'm helping my QA department, they can get out of jam without installing anything.  It looks like you get more information from quser than from qwinsta, specially the idle time.

Chris Miller

4/25/2008 6:42:34 PM #

Hey Steve,

I might help if I actually check my filesystem a little closer.  I found quser.exe hiding in \windows\system32\dllcache.  I wonder why it wasn't in system32?

Chris Miller

4/25/2008 8:13:16 PM #

Hey Chris,
  Well now you know!  Smile  Mine is in \windows\system32. Wonder how it got deleted/moved?

Steve Trefethen

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading