Is there a way to add and remove users from the NT user list with VB.
Printable View
Is there a way to add and remove users from the NT user list with VB.
the NetUserAdd and NetUserDel API calls might be helpful.
Also, check out ADSI (=Active Directory Service interface). It gives you a COM solution for manipulating user data.
You need to use Win2K or download ADSI from the MS Site.
Are NetUserAdd and NetUserDel available in VB. The MSDN library only gives C++ examples.
you can call almost all functions in the platform SDK.
the ADSI interface is probably easier to use from VB. And, I guess I was wrong when stating that you need Win2K to use ADSI. I think it is also available for NT 4.
When using the Net...APIs you have to take into account that these functions are Unicode APIs.
That makes it not so easy to transform them into VB Declare statements and call them accordingly...