Checkout this thread and related links. It will give you a way to enumerate objects.

then for each printer object, get the name and call my CreateADgroup() two times, once for each group to create.
_________________________
Home page: http://www.kixhelp.com/hb/