Results 1 to 5 of 5

Thread: [RESOLVED] I have a computer name, can I see who is logged on?

  1. #1

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Resolved [RESOLVED] I have a computer name, can I see who is logged on?

    Hi,

    I do not think this is possible without Admin permissions, but I thought it would be nice to try.

    I have computer names on this network at work, via ldb files. Is there an API call or some way to find out who is logged on at the machine in question?
    Like when you pres ctrl+alt+del it has <domain>/<user> on the screen. Surely someone could see this, but I am thinking that it might be breaking security on the network, so I am in doubt as to whether I could get this.

    Any pointers to websites with info or the names of useful API calls etc please
    Or a note to say 'no it is not possible'

    Thanks in advance

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  2. #2
    Lively Member
    Join Date
    May 2005
    Posts
    90

    Re: I have a computer name, can I see who is logged on?

    I am going out on a limb here with my initial assumption - first, I am sure that the whatever protocol manages window's groups & user logins probably has a specification for encryption.

    The thing I'd be more "worried" about is that any decent network is switched (as opposed to be "hubbed") and you wouldn't be able to spy on logged in users anyway. However, maybe you can already see these users online in your workgroup?

    Just making an ill-informed speculation
    ^_^

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: I have a computer name, can I see who is logged on?

    I can't remember if it was ever solved or not, but WokaWidget was playing around with this kind of thing a while back here (maybe a year or two ago)... if anybody could do it, I'd guess it would be him - and his code will still be with his posts

  4. #4

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: I have a computer name, can I see who is logged on?

    Thanks n thanks

    A colleague here gave me a link to :
    Information/batch file and
    PSLoggedon <-- on the first link as a psloggedon link

    This does return who is logged on but in a dos window only :/

    The source is available here using an api call NetSessionEnum.

    MS site is entirely unhelpful (vb wise) as the example and code is in C++... Same for vb api's site.

    I did find another link to vb code, that sort of works (I am looking into it a little more today) here.

    I will have a search for Wokas posts shortly. Thanks

    Edit:
    For now, it doesn't appear to be working the way I want, so I am going to leave it and perhaps come back to it at a later stage.
    Post up if you find a site that explains it in vb please
    Last edited by Ecniv; Sep 15th, 2005 at 04:08 AM.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: [RESOLVED] I have a computer name, can I see who is logged on?

    I thought it would be this thread (where Woka asked the question):
    http://www.vbforums.com/showthread.php?t=144860

    But it seems he posted the answer in the first post of a different thread:
    http://www.vbforums.com/showthread.php?t=145192

Posting Permissions

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



Click Here to Expand Forum to Full Width