There are syntax errors in the code, e.g. in UpdateRegistry. The GetSID won't work as you hardcoded the username. Filenames that contain spaces need ot be enclosed in double qoutes, e.g. the first sHELL statement. The last function does nto have an endfunction.

If tyhe whole thing is a login script then it doesn't make sense. Why print all usernames? What's NET.EXE doing?

the whole script needs a serious cleanup.

[ 26. July 2003, 02:27: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.