Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:35:56+00:00 2026-05-29T05:35:56+00:00

We have a shared machine running windows xp professional, and people log in to

  • 0

We have a shared machine running windows xp professional, and people log in to that machine using remote desktop with a single username and password. Problem with Windows remote desktop is that when a another user logs in, the current user gets kicked out of his/her session. I have gotten pretty tired of this and would like to find out a way to see who is logged in to that machine so that everyone can give one another a head-up.

After some search I found a solution on StackOverflow using C#
user-logged-into-remote-machine

However, since we use the same username and password to log in to the shared machine, this method will only tell us that someone (the shared username) is logged into the remote computer, but not who. Is it possible to find out the name of the computer that is connected to the shared machine? Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:35:56+00:00Added an answer on May 29, 2026 at 5:35 am

    You can fetch this information using the native Win32 API (see WTSQuerySessionInformation). If you are using a .NET language, you can use the Cassia library, which wraps the native API and makes it a bit easier to use.

    Using Cassia, you could write something like this:

    var manager = new TerminalServicesManager();
    using (var server = manager.GetRemoteServer("server-name-here"))
    {
        server.Open();
        foreach (var session in server.GetSessions())
        {
            if (session.ConnectionState == ConnectionState.Active)
            {
                Console.WriteLine(session.ClientName);
            }
        }
    }
    

    Note that if you are trying to access a Windows XP machine remotely with this API, you will need to set the AllowRemoteRPC registry key and reboot before you can do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows XP machine and a Linux machine running Ubuntu. I share
I have a shared library that I wish to link an executable against using
I have several projects which are shared between Windows and Mac. The dev machine
I have a Windows service running in local system that simply keeps trying to
I have a C# .NET service that runs as DOMAIN\username on a windows server
I have a windows service running on my local machine. It's configured to run
I have the following setup: Code on my local machine (OS X) shared as
I have a shared development server with many virtual directories running off one of
I have the following code to run a process on a remote machine from
I have a VPN in my office. One machine has windows server 2003 installed.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.