Link to home
Start Free TrialLog in
Avatar of umh
umh

asked on

Adding users to Windows NT Server

I need to know how to make a function in Visual Basic 5.0 in order to add users to Windows NT Server 4.0, including adding him to a domain and linking that user to a profile and several groups. It must run in W95 and Windows NT.
Avatar of Mirkwood
Mirkwood

Take a look at this site. It contains kinds of code about administrating NT including what you want

http://www.netfokus.dk/vbadmincode/
Avatar of umh

ASKER

Please, don't send this again, I'm really interested in get the solution. Thanks.
Avatar of umh

ASKER

Please, don't send this again, I'm really interested in get the solution. Thanks.
I'll give you one more try.

Look at the website I gave you:
http://www.netfokus.dk/vbadmincode/codevb.html

Take a look at the account project that can be downloaded. It is very good and includes VB source code.
Avatar of umh

ASKER

I've tried several projects and I get always the following error:
'runtime error 453' when a function of the netapi32.dll is invoked. It occurs in w95 and w98. Nowadays I don't have visual basic in Win NT.
Avatar of umh

ASKER

I've tried the account project and I get the 453 error in NetServerEnum function. Do you know why? netapi32.dll is in windows\system
Code seems to be working for me
Avatar of umh

ASKER

are you ussing w95 or nt?
the error is 'entry point not found'
any idea?
ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

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 umh

ASKER

Thanks a lot Mirkwood, now that I knew how to make the application in VB they have change their mind and they want I make it in MSC++. Thanks once again, you have take a lot of effort in this question.