Link to home
Start Free TrialLog in
Avatar of barbourwill
barbourwill

asked on

nbtstat tool (netbios?)

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
ASKER CERTIFIED SOLUTION
Avatar of Lee_Nover
Lee_Nover

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lee_Nover
Lee_Nover

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
barbourwill,

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

http://www.sysinternals.com/ntw2k/freeware/psloggedon.shtml
Avatar of Lukasz Zielinski
begin with: NetGroupEnum, NetLocalGroupEnum, NetLocalGroupGetMembers, NetGroupGetUsers, NetWkstaUserEnum, NetQueryDisplayInformation
ziolko.
ooops sorry wrong question.
ziolko.
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.
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