NTDOC 2 things,

all I know is that (netdom join \/domain:/userd:/passwordd:* /userO:/passwordO:*)

adds the computer to the domain. where would I place the "for each" statement.

2. I also looked at a program you created for kixforms called Join AD v.1.0,
I registered the .dll and ran the script but it did not work. I ran it from my c: and in there i had the netdom,kix32, and the joinad.kix script. Something about line 37

anyway, if the for each statement works i will just try that for now and then try to figure out the other later.