[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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

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.
0
FedexAdmin
Asked:
FedexAdmin
  • 2
1 Solution
 
Jason WatkinsIT Project LeaderCommented:
Hello,

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
0
 
matiaslCommented:
Could you perhaps do it with query session ? With it you should be able to list and create some kind of logging script.

http://serverfault.com/questions/41499/scripting-how-to-disconnect-remote-desktop-sessions
0
 
FedexAdminAuthor Commented:
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.
0
 
FedexAdminAuthor Commented:
I ended up just running a loop every 50 seconds using the query command to log Disconnected sessions, it actually works very well.
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now