W William DePalo [MVP VC++] Mar 25, 2005 #2 cyshao said: How to add system users and groups by programming? Click to expand... IMO, the simplest (and oldest way) to add a user is with NetUserAdd(). For groups, check the docs for NetGroupAdd() and NetLoclGroupAdd(). You might also want to read up on ActiveDirectory http://msdn.microsoft.com/library/d.../active_directory_service_interfaces_adsi.asp which is scriptable as well as programmable. Regards, Will
cyshao said: How to add system users and groups by programming? Click to expand... IMO, the simplest (and oldest way) to add a user is with NetUserAdd(). For groups, check the docs for NetGroupAdd() and NetLoclGroupAdd(). You might also want to read up on ActiveDirectory http://msdn.microsoft.com/library/d.../active_directory_service_interfaces_adsi.asp which is scriptable as well as programmable. Regards, Will