We have two groups for each printer. One is for the users that should get the printer as default and one for the users that should get the printer as a extra printer. On each group we do an if - else - endif.

Something like this.

 Code:
;printer1
If InGroup("printer1-defgrp")
	AddPrinterConnection ("\\server\printer1") = 0
	SetDefaultPrinter ("\\server\printer1")
EndIf
If InGroup("printer1-extgrp")
	AddPrinterConnection ("\\server\printer1") = 0
EndIf
;
;printer2
If InGroup("printer2-defgrp")
	AddPrinterConnection ("\\server\printer2") = 0
	SetDefaultPrinter ("\\server\printer2")
EndIf

If InGroup("printer2-extgrp")
	AddPrinterConnection ("\\server\printer2") = 0
EndIf


The scripts get written automatically by and admin script that runs every two hours and checks the group membership of all users. First we collect all users from AD and then we use the UserGroups UDF to get the group membership for each user.
UserGroups() - returns all groups of a given user
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.