User name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GTi

    User name

    Is it possible get the logged on username for an specified IP
    address/hostname in a local domain ?

  • Chris S.

    #2
    Re: User name

    You want who is logged on at a certain machine? It may be possible
    using the Active Directory objects (System.Directo ryServices) or you'll
    have to create your own application for each machine.

    Comment

    • GTi

      #3
      Re: User name

      Chris,
      Yes - based on the machine name/address I can look in a Directory and
      get the logon name.
      Will try to see whats inside System.Director yServices .
      Tx for the tip.

      Comment

      • Willy Denoyette [MVP]

        #4
        Re: User name


        "GTi" <tunlid@gmail.c om> wrote in message
        news:1138789190 .278720.189770@ g43g2000cwa.goo glegroups.com.. .
        | Chris,
        | Yes - based on the machine name/address I can look in a Directory and
        | get the logon name.
        | Will try to see whats inside System.Director yServices .


        Nothing, the DS aren't meant to keep track of logged-on users, the AD is a
        (static) store of directory objects and properties like users, machines etc.
        It doesn't keep track of dynamic properties like a logon status, it doesn't
        even handle the logon, so it can't keep track of it.
        One option you have to use System.Manageme nt and WMI to query for the logon
        state of a user on a specific machine.

        Willy.



        Comment

        Working...