Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

NT/2000 Return all logged in users..

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

  • NT/2000 Return all logged in users..

    Does anyone have any idea how to go about getting started finding all logged on users to the NT domain?
    I know there are ways in NT to do it but I sorta want to write my own app...


    Scott

    -------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    Scott --
    visit http://www.mvps.org/vbnet/ and search
    Enumerating the User List and Obtaining User Info
    (VB code)

    ------------------

    Comment


    • #3
      Scott, I don't think there is a method of returning just logged on users. There are a number of API's to enumerate the user accounts on a local machine and a domain. Florent posted some code in the Source section that will enumerate users, machines, and group accounts using the NetQueryDisplayInformation function. I've seen some hacks that allow you to "register" users when their LOGON script runs, I'll see if I can find an example for you.

      -John

      ------------------

      Comment


      • #4
        These may help:

        http://www.ntfaq.com/ntfaq/network26.html
        http://www.jsiinc.com/tip0200/rh0296.htm

        ------------------

        Comment


        • #5
          Interesting that NET SESSIONS only works on NT, but that makes sense since that is where the users accounts are....

          So there has to be an api to enum all of that, same as before...
          I'll keep looking, thanks!

          Scott

          ------------------
          Scott
          mailto:[email protected][email protected]</A>
          Scott Turchin
          MCSE, MCP+I
          http://www.tngbbs.com
          ----------------------
          True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

          Comment


          • #6
            Have a look at the VBAdminCode site. It has lots of good VB code that's easy to port to PB. There is one sample there call LoggedOn that does exactly what you want.
            http://www.netfokus.dk/vbadmincode/

            Brent...

            ------------------

            Comment


            • #7
              Awesome site, good stuff there...
              I'm also going to compare how he grabs html files vs how I am doing it...

              Thanks, think that one will do the trick..

              Scott

              ------------------
              Scott
              mailto:[email protected][email protected]</A>
              Scott Turchin
              MCSE, MCP+I
              http://www.tngbbs.com
              ----------------------
              True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

              Comment

              Working...
              X