What you are demonstrating is that the function works.

You will have to put the debugging code in place and in order to track all the values and success/failure of each ADSI I stated above.

The data in your last post provide little value except for proving the createadgroup function works.
_________________________
Home page: http://www.kixhelp.com/hb/