Find and Reset RDP Sessions

We have a lot of servers. When I get disconnected, I may leave hanging sessions on those servers which I forget to properly close. Then, after I change the password for my admin account, I sometimes get locked out as a result of what I had open in the now disconnected session. Tracking this down is always annoying and time consuming. When users (including administrators) are terminated, a there is a similar problem — you want to find and reset those sessions, too. ServerSessions.vbs is a script for admins to run to track down sessions on servers and optionally reset them. You can list sessions on all servers in a domain, and reset either all or just disconnected sessions. I have scripts for finding users, too.  LocateUsers.vbs finds a user based on their home drive sessions.

2 thoughts on “Find and Reset RDP Sessions

Leave a Reply