Results 1 to 6 of 6

Thread: Reolve IP or DNS on network to NT Username

  1. #1
    Guest

    Unhappy

    I am currently working on a LAN monitor. I have a ping sweep that on a period of time check for IP's alive over the network. Now i can resolve this IP to a machine/hostname. But how can i further resolve these into the current user logged on, on that NT machine?? Preferebly not using a crawler or watch dog on the client side please !
    It's pretty much like doing sms. But how can it be done on VB?


    At the end, with just an IP/Hostname, i want to know some information on who is using a particular NT machine on my network?

    regards,
    gokula

  2. #2
    Junior Member
    Join Date
    Jan 2001
    Posts
    30
    hello , i saw you problem and if you find the solution of how to find the names of all the computers in the net
    i'll thankful.

  3. #3
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    nbtstat -a <computername> will give you what you want, but you'll have to wade thru other info to get it.

    I didn't take a good at it, but there is a recent thread that may help: http://forums.vb-world.net/showthrea...threadid=51806

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Posts
    30

    Question in that exp i get just the servers name

    thanks .
    but maybe you know how can i get all the pc's name .
    in that exp i can see onley the sevrers name in the net
    and i need to get the servers name and also the pc's name .

  5. #5
    Junior Member
    Join Date
    Feb 2002
    Location
    Ontario Canada
    Posts
    18
    All my experience (minimal) with NBTSTAT shows me that if you run:

    C:>nbtstat -A <ip address> >C:\temp\sometempfile.txt

    you will get back the DNS name of the related workstation, the MAC address and the logged in user name. The above command willpipe it out to a text file for later reference.

    What I am trying to figure out is why my ShellEx routine will not pipe the information to a text file in the same manner as the exact same command line will do when written at the DOS prompt.
    Life is short. Pray hard!!

  6. #6
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    Have you tried creating the command in a bat file and shellexecuting that?

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