Announcement

Collapse
No announcement yet.

Users computer name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Users computer name

    I can bring up a computer and I can bring up a user. How do I tell what computer the user is logged on to?
    TIA,
    Pat

  • #2
    Re: Users computer name

    Unless someone posts a script to do this (I can't remember how at the moment), you can't easily to do this, and Hyena has no function to do it anyway. If you suspect that a user is logged onto a particular computer, you can right click on that computer and select "View Logged On Users", but you can generally find what computer a user is logged onto.
    Kevin Stanush
    SystemTools Software Inc.

    Comment


    • #3
      Re: Users computer name

      Use psLoggedon from http://www.sysinternals.com/ntw2k/utilities.shtml

      You could script it like so...
      CMD.exe /K (path to program)\psloggedon.exe %E%

      You would select the username in the left pane, or Column1 in the right pane and execute the tool.

      The CMD.exe /K will load a command prompt, run the app, then remain on the screen so you can see the output.

      Comment


      • #4
        Re: Users computer name

        Please report back if this command works for you. I looked at the source recently for this utility and it uses the same technique as Hyena to see who is logged on, but to find a particular user, it scans the HKEY_USERS key of every single computer on your network. I'm curious about performance...

        Thanks
        Kevin Stanush
        SystemTools Software Inc.

        Comment


        • #5
          Re: Users computer name

          I tried psloggedon as a stand alone batch file setup like this:
          CMD.exe /K C:\winnt\system\psloggedon.exe username
          I wasnt able to get it working with Hyena.
          This utility scans the entire network and tells you what systems the user logged onto. You have to scan the list to find out what system is logged onto locally.

          Thanks for all your help, if there are anymore ideas on getting this program to work within Hyena, please post.

          Comment


          • #6
            Re: Users computer name

            If you want to do something like this from Hyena, and since the time involved would be the same, just select your computers in Hyena's right window, then right-click and choose View Logged On Users.

            For script ideas, here are two:
            http://www.systemtools.com/HyenaBoar...ML/000008.html

            Near the bottom of this post: http://www.systemtools.com/HyenaBoar...ML/000032.html

            Comment


            • #7
              Re: Users computer name

              I tested it with Hyena before posting the command line and it is working fine (it's one of my tools). Make sure that the executable is in your path ("C:\winnt\system" in your case). I also use the %E% instead of "username", or the actual username (this is passed with the variable when the user is highlighted). Try it from a command prompt to verify ("psloggedon username") instead of from a batch file.

              As far as performance, I find it to be average (about 6 minutes to scan over 600 computers in a single domain). It will be longer if you don't have registry access to all of the machines (connection timeouts).

              I also use Event Comb to find duplicate logons, and a scan of the Security Logs on 2 Domain Controllers over a 2 day period takes about as long.

              I would also find it hard not to scan the entire domain when searching for a logged on user. If you knew what computer he(she) was on, there would be no need for the scan. . You could always filter the DC's logs, but it would take more time to setup the filter and parse the results visually, in my opinion.

              Comment


              • #8
                Re: Users computer name

                The vbs posted by Joel did the trick. Its a neat cut and paste that will tell you which PC a given user is logged on to.

                Thanks to all

                Comment

                Working...
                X