Yes, thank you for the quick reply! I have placed the Endif in the end of each line, and now it mapps the printers within the group. The next question would be..if users are members of more then one printer groups, would the script continue to run or wll exit after mapping the prnters on the first group !? So te script would look like..

IF INGROUP("PF4Z3")
CLS
AT (11,30) "Adding Printers"
$rc=addprinterconnection("\\SRIM6122\PRIM1551") If @error<>0 addprinterconnection("\\SRIM6109\PRIM1551") ENDIF
$rc=addprinterconnection("\\SRIM6109\PRIM1550") If @error<>0 addprinterconnection("\\SRIM6122\PRIM1550") ENDIF
$rc=addprinterconnection("\\SRIM6122\PRIM1782") If @error<>0 addprinterconnection("\\SRIM6109\PRIM1782") ENDIF
$rc=addprinterconnection("\\SRIM6109\PRIM1347") If @error<>0 addprinterconnection("\\SRIM6122\PRIM1347") ENDIF
setdefaultprinter("\\SRIM6122\PRIM1551") If @error<>0 setdefaultprinter("\\SRIM6109\PRIM1550") ENDIF
AT (13,30) "Default Printer HP4050N"
EndIf

IF INGROUP("PF4Z4")
CLS
AT (11,30) "Adding Printers"
$rc=addprinterconnection("\\SRIM6122\PRIM1551") If @error<>0 addprinterconnection("\\SRIM6109\PRIM1551") ENDIF
$rc=addprinterconnection("\\SRIM6109\PRIM1550") If @error<>0 addprinterconnection("\\SRIM6122\PRIM1550") ENDIF
$rc=addprinterconnection("\\SRIM6122\PRIM1782") If @error<>0 addprinterconnection("\\SRIM6109\PRIM1782") ENDIF
$rc=addprinterconnection("\\SRIM6109\PRIM1347") If @error<>0 addprinterconnection("\\SRIM6122\PRIM1347")ENDIF
setdefaultprinter("\\SRIM6122\PRIM1551") If @error<>0 setdefaultprinter("\\SRIM6109\PRIM1550") ENDIF
AT (13,30) "Default Printer HP4050N"
EndIf


Edited by bestia (2005-01-25 12:17 AM)