quote:
primaryGroupID
The primaryGroupID property is a single-valued property containing the relative identifier (RID) for the primary group of the user. By default, this is the RID for the Domain Users group. This property is not used in the context of the Active Directory.

You can create a set of groups that represent the default printers. Then you can just add logic to check for members in a "defaultPrinter" group. If so, then call the SetDefaultPrinterfunction for the printer name.

You can include the printer name i either in the name of the group or in the description field of the group.
_________________________
Home page: http://www.kixhelp.com/hb/