heh [Big Grin]
funny boy...

indeed, you get console window if you throw stuff out of your script to console.
easiest way to get that fixed is start your script with:
$rc=redirectoutput("my_debug_file")

this way you will see what your script is giving out and you will be able to clean it up easily.

on the other hand, you can leave the redirectoutput there and do some debugging info in the file by just saying:
"user homedrive mapped with error: " @error

I think that's specially neat with logonscript and problems are easy to catch.
_________________________
!

download KiXnet