k, think this will give you some idea.
you need the PrintTo() udf in your script file to be able to use this code.
get it from:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000360

$tempfile="%temp%\newusernote.htm"
$ourserverroomprinter="\\myDC3\xeroxColor"
$username="theNewUser"
$password="ournewlygeneratedRandomPassWhich1sLongEnoughto_make!the,end-user MAD!"
$myhtml="<H1>dude, you got a nice new user account!<h1><p>your account information is:</p>"+
"<ul><li>username:<font color='red'>"+$newuser+"</font><li>password:<font color='red'>"+$password+"</font></ul>"+
"<p>once you log on the first time, you will be asked to <b>change your password</b> (case sensitive)."+
" this is just security procedure. don't worry about it, just bloody change it, you ignorant end-user!"

del $tempfile ;don't want our tempfile be there yet.
$returncode=open(1,$tempfile,5) ;but we want to create it ourselfes
$returncode=writeline(1,$myhtml)
$returncode=close(1)
PrintTo($tempfile,$ourserverroomprinter) ;ok, let's print it.


to do lots of users, just work in some looping.
k?

[ 07. October 2003, 21:42: Message edited by: Lonkero ]
_________________________
!

download KiXnet