Yes there are more issues and concerns to be aware of when using KiX to do it. Shelling to NETDOM though is easier, but ADSI code should be all you need to do it. Though as I recall no one has posted a 100% working UDF type solution for it since using NETDOM is rather easy.

Here is a very old post I made with a KiXforms script. I'm sure it could use some code update but you can view it here if wanted.

JoinAD
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Board=2&Number=75216



.