Posts Tagged ‘printui.dll’

Issues with Printui.dll in login scripts

Wednesday, May 19th, 2010

I’ve spent a bit more time working with printui.dll to install printers, and found some interesting things:

1. Adding a printer to the machine doesn’t seem to automatically make it available to active directory accounts.  It does allow the AddWindowsPrinterConnection command from the Wscript.shell object to set up the printer.

2. It can only be run once on a machine for a given printer without giving an error, making it impractical to put into a login script for users (but possibly useful for a remote command or new machine script).

At the moment, I’m leaving it out of the login scripts and just manually adding the printers for windows 7 boxes.  If group policy managed print management in windows 2008 works out, I’ll switch to using that to set up printers instead.