Don't you need "xcalcs" to run silent batch scripts? Both xcalcs & rmtshare can be downloaded from the microsoft FTP sit under the resource kit patches section.

These utilities will not run properly from a Win9x machine so Win9x clients can not automatically create home shares.


Here is a possible template for a bat file creating a new user. Using the FOR command you can adapt it so it reads a text file containing the appropriate user info for any number of accounts. I recommend running it from the server.


NET USER %USERID% %password% /add
NET USER %USERID% /scriptpath:LOGON.BAT /passwordchg:no /passwordreq:yes
NET USER %USERID% /times:M-F,7AM-6PM
NET USER %USERID% /fullname:%fname% /comment:%comment% /expires:%edate%
NET GROUP STUDENT %USERID% /ADD

MD d:\USERS\Z%USERID%
XCACLS.EXE D:\USERS\Z%USERID% /t /c /g administrator:fo;fo webmaster:f;f %USERID%:f;f /y
NET USER %USERID% /homedir :\USERS\Z%USERID%
RMTSHARE \\server\%USERID%$=D:\USERS\Z%USERID% /grant %USERID%:f users:2 /remark:%FNAME%
RMTSHARE \\server\%USERID%$ /grant administrators:f
RMTSHARE \\server\%USERID%$ /grant %USERID%:f

_________________________
Jack