UserMgnt.vbp.

Notes:

This project was originally developed for a college to manage their NT student accounts. It does the following.

Creates a Domain User account
Adds the account to an additional global group. There is a call to add to a local group - thanks to Elvio Serrao for sorting that :-) - but is not used.
Creates a directory on the PDC for each user.
Generates unique 8 char alphanumeric passwords.
Sets a logon script path and various account flags.
Generates an msword format mail merge file for account info distribution.
Deletes the accounts and associated directories.

Note that you must fill all the parameters in the USER_INFO-n structures with appropriate values even if not being used. Also note that dwMaxStorage does not appear to do anything - the only referenced value is USER_MAXSTORAGE_UNLIMITED.

There are some kludges - noteably the deletion of directories which I ended up shelling out to rmdir to accomplish.

rgds

