How to tell who is logged onto a windows xp machine

Posted on 2005-03-15
Medium Priority
Last Modified: 2011-10-03
I'm running Windows 2003 Servers and Windows XP machines. Is there a way to see who is logged onto what machine?
Question by:vbplayer
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Expert Comment

by:Nirmal Sharma
ID: 13544393

Author Comment

ID: 13544436
I should have said why I want to know. When I need to log onto a machine remotely I might not always know the machine name. I'm thinking if there is a way to see who is logged onto what machine I could get the machine name from there.

Expert Comment

ID: 13544664
You can try the below
(1) Software like NEWT Professional. They allow you to run on a domain or a range of IP address & give u hostname, IP address, etc etc, user name etc.

(2) U can generate a quesry if u have SMS.

Pls let me know if the above suggestion is of any help.

Accepted Solution

ScrptMasta earned 2000 total points
ID: 13559988
If you know the IP of the computer you can use this script to tell you who is logged on.

strComputer = ""
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colComputer = objWMIService.ExecQuery _
    ("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer
    Wscript.Echo "Logged-on user: " & objComputer.UserName

Expert Comment

ID: 24893992
This is just for anyone else looking for the same answer in the future,

I found PSloggedOn from Sysinternals perfect for this. http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx



Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 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