Announcement

Collapse
No announcement yet.

Who is logged

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

  • Who is logged

    Is there any command or script to find which Pc using X.X.X.X" ip ADDRESS AND WHO IS LOGGED ON THAT MACHINE. within Forest

  • #2
    Re: Who is logged

    Try PSloggedon:

    You can determine who is using resources on your local computer with the "net" command ("net session"), however, there is no built-in way to determine who is using the resources of a remote computer. In addition, NT comes with no tools to see who is logged onto a computer, either locally or remotely. PsLoggedOn is an applet that displays both the locally logged on users and users logged on via resources for either the local computer, or a remote one. If you specify a user name instead of a computer, PsLoggedOn searches the computers in the network neighborhood and tells you if the user is currently logged on.

    PsLoggedOn's definition of a locally logged on user is one that has their profile loaded into the Registry, so PsLoggedOn determines who is logged on by scanning the keys under the HKEY_USERS key. For each key that has a name that is a user SID (security Identifier), PsLoggedOn looks up the corresponding user name and displays it. To determine who is logged onto a computer via resource shares, PsLoggedOn uses the NetSessionEnum API. Note that PsLoggedOn will show you as logged on via resource share to remote computers that you query because a logon is required for PsLoggedOn to access the Registry of a remote system.
    http://www.microsoft.com/technet/sys...sloggedon.mspx

    Michael
    Michael Armstrong
    www.m80arm.co.uk
    MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

    Comment


    • #3
      Re: Who is logged

      Thanks for your reply , I manage to find a script that does the job. I have pasted here the body of script .Open notepad copy and paste in notepad and save as *.vbs.


      strComputer = InputBox("Please enter the PC you wish to query", _
      "Who's Logged On")
      If strComputer = "" Then

      WScript.Quit
      Else

      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
      Next

      End If

      Comment


      • #4
        Re: Who is logged

        Thanks for posting a reply back

        Michael
        Michael Armstrong
        www.m80arm.co.uk
        MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

        ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

        Comment

        Working...
        X