Solved

nbtstat tool (netbios?)

Posted on 2002-06-25
7
542 Views
Last Modified: 2010-04-04
If in win NT or win 2k you type "nbtstat -a hostname" in cmdline, it tells you who is currently logged on to that particular machine.

Is there a way to do this programatically using some API calls? Bearing in mind that it has to work on User level privalages on Win 2K.


thanks
0
Comment
Question by:barbourwill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 500 total points
ID: 7108269
check out: http://www.xploiter.com/tambu/
there are a few utilities and source code about your problem

you could also call "nbtstat -a hostname > tempfile" with ShellExecute
then load the contents of the file in a memo or sumtin like that
then delete the tempfile :)

also check out JEDI JCL library
it has GetMacAddresses and some other usefull functions
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7108452
maybe some additional info from MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/ntlmapi2_6msv.asp
check out the other Net* functions
0
 
LVL 7

Expert Comment

by:Cynna
ID: 7116472
barbourwill,

You could also find this usefull (free & source):

http://www.sysinternals.com/ntw2k/freeware/psloggedon.shtml
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 21

Expert Comment

by:ziolko
ID: 8731658
begin with: NetGroupEnum, NetLocalGroupEnum, NetLocalGroupGetMembers, NetGroupGetUsers, NetWkstaUserEnum, NetQueryDisplayInformation
ziolko.
0
 
LVL 21

Expert Comment

by:ziolko
ID: 8731671
ooops sorry wrong question.
ziolko.
0
 

Expert Comment

by:CleanupPing
ID: 9343163
barbourwill:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9453633
barbourwill,
No comment has been added lately (17 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to Lee_Nover http:#7108269

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question