yeah that worked great maciep. thanx for the suggestion... here is my modified code:

Code:
function genWinCompliantPassword($length) 
$PassLength = $length
$LowChar = 33
$HighChar = 126

$RandomNumSeed = SRnd(@MSECS)

While $x <= $PassLength
$num = Rnd(93) + 33
$newNum = CHR($num)
$pw = $pw+$newNum
if $x = $PassLength
? $pw
endif
$x = $x + 1
Loop

Return $pw
EndFunction