> How to add system users and groups by programming?
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/default.asp?url=/library/en-us/adsi/adsi/activ
e_directory_service_interfaces_adsi.asp
which is scriptable as well as programmable.
Regards,
Will