Results 1 to 13 of 13
  1. #1
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Determine which computer user is logged onto (XP Pro)

    Hi, I have been searching the net and the lounge for some answers to this, and apart from third party utilities ( which i may have to employ ) i cannot find a way of doing the following:

    I want to be able to enter a network logon / username ( complete with domain as necessary ) and to be told which Computer Name they are currently logged onto.

    When i goto windows Remote Assistance, and type in the Computer Name, Windows tells me the DOMAIN/USERNAME of the currently logged in user. I want to do this but in reverse. I am auditing the site and this would be so helpful.

    I would be happy to find a CMDline option of doing this, or even more so a VB way of doing this.

    I have used terminal server from the admin tools so far - but this involves me entering the computer name - i have them in a list - and it tells me the current logged in person - I imagine its this service that the remote assistance uses.

    Can this be done backwards with a Windows Service / utility / cmdLine.???

    Cheers
    Thanks,

    pmatz

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,594
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Determine which computer user is logged onto (XP Pro)

    Check out PsLoggedOn which is part of the PsTools Suite from Sysinternals.

    Joe
    Joe

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Determine which computer user is logged onto (

    Joe's suggestion is a good one provided that you don't have large numbers of BDCs at the end of slow WAN lines, for PSLOGGEDON searches every domain controller (there being no simpler way...).

    John

    (It would have taken over two days to search our complete domain!)
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Determine which computer user is logged onto (

    Thanks John!
    (How's Quedgeley??) <img src=/S/wink.gif border=0 alt=wink width=15 height=15>
    Cromwell Street's just fine <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Tried this. the network I'm on has stacks of terminals and so not really a viable option. It takes ages to scan - only got one result in a couple of mins & some error messages about access rights to registry. Is there another way of displaying all users logged on to the smaller domain that I'm on.

    Perhaps I will just have to go thru my list of computer names and retrieve the currently logged on user.
    Thanks,

    pmatz

  5. #5
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,594
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Determine which computer user is logged onto (

    If the users are logged into a domain rather than locally then you should be able to check the domain controller to see who is logged in.

    Joe
    Joe

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Determine which computer user is logged onto (

    Joe

    That's what PsLoggedOn actually does -- it searches the SAM database on every domain controller in your domain!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Determine which computer user is logged onto (

    <hr>then you should be able to check the domain controller to see who is logged in<hr>
    Hi Joe, how would you do that? I have the admin tools and am working from my workstation currently. Would I still need a third party utility such as psloggedin, and is there a way to make it only search a certain domain? Sorry but still learning much about this type of thing!
    Thanks,

    pmatz

  8. #8
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,594
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Determine which computer user is logged onto (

    John,
    Can't the OP use VNC (or some other tool) to connect to a particular server and use the admin tools on the server to see who is logged in? Or is there some AD user tool available?

    Joe
    Joe

  9. #9
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Determine which computer user is logged onto (

    Joe

    I don't really understand what you mean. If you're logged on to an NT-type domain, you will have been logged on by a logon server, which must be a domain controller. Unfortunately the logon information does not get written back to the PDC, unless you had to change password (design flaw? or feature to reduce traffic to the PDC?).

    AD postdates me, since our parent bank wanted to do all this themselves, so our plans to introduce it were scrapped 2-3 years ago!

    John

    PS M
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  10. #10
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,594
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Determine which computer user is logged onto (

    John,

    With NT there's an admin application called 'server manager'. You can find out who has open sessions for any specific computer in the domain. Don't know what the 2k or 2k3 equivilant would be.

    Joe
    Joe

  11. #11
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Determine which computer user is logged onto (

    Joe

    "Open sessions" is not what I would call "logged on". You can have an open session with a server simply by being connected to one of its shares!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  12. #12
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,594
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Determine which computer user is logged onto (

    John,

    True. But I'm not sure that a user name is present unless they are logged in.

    Joe
    Joe

  13. #13
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Determine which computer user is logged onto (

    Thanks John. Will try it Monday!
    Thanks,

    pmatz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •