Solved

nbtstat tool (netbios?)

Posted on 2002-06-25
7
521 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 76
Working with hours 3 46
can't find the executable in Simulator 1 80
Find and Replace Stream with 0s 8 57
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now