is there a way to see which users are logged into which computers?

I don't want to log into each PC to see which user is already logged in.  I just want to see if say user A is logged into computer 2.
joypatrickAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom CieslikIT EngineerCommented:
3 Ways to Remotely View Who Is Logged On
1. You can use Remote Desktop Services Manager from RSAT package
2. You can ask in command prompt using PsLoggedOn from sysinternals package ( C:\PsTools\psloggedon.exe \\server-a)
https://docs.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite
3. Or you can use Query located at %SystemRoot%\system32\query.exe on your command prompt
query user /server:server-a



https://www.devopsonwindows.com/3-ways-remotely-view-who-is-logged-on/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lawrence TsePrinciple ConsultantCommented:
Oh sorry wrong threat
0
Lawrence TsePrinciple ConsultantCommented:
Found this VBScript might help:

strComputer = "."   ' " use "." for local computer

------------

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

Set colSessions = objWMI.ExecQuery _
    ("Select * from Win32_LogonSession Where LogonType = 2 OR LogonType = 10")

If colSessions.Count = 0 Then
   Wscript.Echo "No interactive users found"
Else
   For Each objSession in colSessions
     If objSession.LogonType = 2 Then
       WScript.Echo "Logon type: Console"
     Else
       WScript.Echo "Logon type: RDP/Terminal Server"
     End If
     Set colList = objWMI.ExecQuery("Associators of " _
         & "{Win32_LogonSession.LogonId=" & objSession.LogonId & "} " _
         & "Where AssocClass=Win32_LoggedOnUser Role=Dependent" )

     For Each objItem in colList
       WScript.Echo "User: " & objItem.Name
       WScript.Echo "FullName: " & objItem.FullName
       WScript.Echo "Domain: " & objItem.Domain
     Next
     Wscript.Echo "Session start time: " & objSession.StartTime
     WScript.Echo
   Next
End If
0
Tom CieslikIT EngineerCommented:
Best solution provided, no more other questions from author
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PC

From novice to tech pro — start learning today.