Thanks Glenn.
Monolithic code? I like that term. Sounds like I might end up suffering from the gods of programming :-)))))))))))))))
Why do you say a select statement limits a workstation to one printer?
Case InStr (@wksta,"047-C111")=1
$nothing = AddPrinterConnection ($s1 + "\Epson")
$nothing = AddPrinterConnection ($s1 + "\c111")
$nothing = AddPrinterConnection ($s1 + "\Xerox")
$nothing = SetDefaultPrinter ($s1 + "\c111")
I'll take a closer look at your script tomorrow. But off the top of my head, I think your code would be more appropriate if I was the downtown tech in charge of setting up printers for all schools in the district. But as I'm only responsible for one school with only six student labs with printers and twelve or so staff printers, I don't think maintaining the select list I have is that hard (especially since there's one script for the staff side and another for the student side). And (LOL) we're talking a school here. A school that only changes printers every five or six years due to lack of money. So we don't see a lot of changes in hardware.
Jeremy
_________________________
---
Bishop Grandin Technology Department
'Either we're on time, or we're late'