I'm not 100% sure what you are asking for...But this would add printers depending upon primary group. You dont have to check membership...The user will always be a member of their returned primarygroup. You just need to change the groups and the printer shares. If there are more than a few...Then perhaps a Select statement would work better.

code:
 
If @PrimaryGroup = "OfficeGroup"
AddPrinterConnection ("\\PrintServer\OfficePrinter")
Endif
If @PrimaryGroup = "PlantGroup"
AddPrinterConnection ("\\PrintServer\PlantPrinter")
Endif



[ 10. October 2003, 00:29: Message edited by: CitrixMan ]