Is there a way to log when a sessions goes from active to disconnected.

Posted on 2009-12-30
Last Modified: 2012-05-08
I am getting several 1041 reconnect errors on my Windows 2003 TS farm but I have no visibility as to which clients are trying to reconnect.  Is there a way to log all of the sessions that get disconnected instead of logging off properly.
Question by:FedexAdmin
    LVL 27

    Expert Comment

    by:Jason Watkins

    Can you check in the Security Log to see which accounts had a failed login event? If it is not on the actual TS server, it will be on the DC
    LVL 4

    Accepted Solution

    Could you perhaps do it with query session ? With it you should be able to list and create some kind of logging script.

    Author Comment

    I have the servers set to logoff disconnected sessions after 1 minute, I dont think that would catch the sessions I am looking for unless I ran the query in a loop nonstop.

    Author Comment

    I ended up just running a loop every 50 seconds using the query command to log Disconnected sessions, it actually works very well.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
    I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now