Thank you very much Shawn. The extra set of eyes was definitely needed.

Tested with the example code and ALL groups are properly created.

With the invalid $SamAccountName variable each group was trying to set the same SamAccountName "Null" which must be unique. I will immediatley correct this in the UDF Library.

Thank again!. [Big Grin]

[edit]
This makes me feel a little sheepish. [Embarrassed]
[/edit]

[ 23. October 2003, 14:43: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/