To which remote Windows servers or computers am I logged on?

Posted on 2011-04-20
Medium Priority
Last Modified: 2012-06-27
I always logon remotely to servers, and sometimes I forget to logoff.
I need to know to which Windows servers I am still logged on.
Question by:ismaiel

Expert Comment

ID: 35432504
You can run "hostname" command in command prompt

Author Comment

ID: 35432973
Thanks, but it seems you did not get me, I will explain more.
I login to servers remotely, sometimes I forget to logout.
When you close the RDP session without logging out, you remain logged in to the Windows.
Now from my XP client, I need to know to which servers I am still logged in, in order to logout.
I do have a need to logout from all of the servers which I am still logged on.

Expert Comment

by:Joseph Ruiz
ID: 35433122
Use the Terminal Services Manager in the Administrative Tools section where you access Active Directory Users and Computers. Control Panel > Administrative Tools > Terminal Services Manager. This will show you you the servers in your domain and who is logged into them. It also lets you close the connection if it is still open.
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.


Expert Comment

ID: 35434160
you can run script with list of rdp servers and logoff/anything else from the servers. Here is the link for a script close to your requirement:



Accepted Solution

Kirkman earned 500 total points
ID: 35434672
if you are not in AD you cannot sea where are still connected. If you are in AD you can use tsadmin

Author Closing Comment

ID: 35715458
It did not help as I have AD, but the colution did not list the RDP connections.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting a…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

599 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