Okay.... I created a script that works. Please look it over and let me know if I need to modify how the script runs.

User logs in and runs logon.kix which makes the following call:
Code:
 CALL @SCRIPTDIR+'\printers.kix' ; This script assigns printers to client logon profiles. 



The contents of printers.kix runs:
Code:
 $dept = left(@wksta,2)
$1stPrinter = readprofilestring("\\data\netlogon\printers.ini",$dept,"1stPrinter")
$2ndPrinter = readprofilestring("\\data\netlogon\printers.ini",$dept,"2ndPrinter")
$3ndPrinter = readprofilestring("\\data\netlogon\printers.ini",$dept,"3ndPrinter")
IF AddPrinterConnection ($1stPrinter) = 0
? "Added printer connection...."
ENDIF



Which parses the printers.ini:
Code:
 [AB]
1stPrinter=\\DATA\FDAMBLJ
2NDPRINTER=\\DATA\FDADMINLJ
3RDPRINTER=\\DATA\FDCOLORLJ

[AQ]
1STPRINTER=\\DATA\AQOFFICELJ
2NDPRINTER=\\DATA\AQCOLORLJ

[BU]


[CC]
1STPRINTER=\\DATA\CCADMINLJ
2NDPRINTER=\\DATA\CCOFFICELJ
etc.........



My end result being: Printers are added to computers according to their departments. If the printer exists, the process is aborted.

Any corrections are appreciated.

Thanks, Matt


Edited by Huffinagle (2005-05-24 11:02 PM)