I actually wrote a small script just for that once. Used it to connect to all printers on our print server whenever we built a new citrix server. That way all the drivers got installed. The Ricoh aficio printers were nasty as well if I remember correctly.