Well I found the answer to my own question thanks to google. In our labs we install both PCL and PS drivers for each printer. This can be fun ;-)
To save settings to file: rundll32 printui.dll,PrintUIEntry /Ss /n "csb2054-col PS" /a "file.dat" To Restore all settings from a file rundll32 printui.dll,PrintUIEntry /Sr /n "csb2054-col PS" /a "c:\drivers\printers\pdefs\2054c-ps.dat" 2 7 c d g If you try to restore all the settings you will get a error. I think restoring the Security descriptor is what is causing the error. I found that if you restore with options "2 7 c d g" it work with out any errors. /Sr Restore printer settings from a file Store or restore printer settings option flags that must be placed at the end of command: 2 PRINTER_INFO_2 7 PRINTER_INFO_7 c Color Profile d PrinterData s Security descriptor g Global DevMode m Minimal settings u User DevMode r Resolve name conflicts f Force name p Resolve port You can create a simple batch file to add the ports, create the printers and restore the settings. If anyone whats to see what I have done let me know. I am still working out some bugs. Thanks Paul On Wed, 28 Jan 2004, Paul Griffith wrote: > > Just a follow up question as I debate using Ghost or the unattend package. > How do you or would you configure your printers? All the the printers I > deploy in the lab have the duplex option enabled and I notice that if I do > not enable duplex after I install the driver and make it the default on > the computer it prints in simplex mode (single sided). > > > Thanks > Paul > > > > On Tue, 27 Jan 2004, Tyler Hepworth wrote: > > > If you are on a domain and have point and print setup on your print servers, > > you can also use a simple vbscript to install the printers > > > > Set WshNetwork = CreateObject("WScript.Network") > > WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_name" > > > > Put those lines in a .vbs file and then push the file onto todo.pl. I wrote > > a patch to install.pl that gives me a multiple choice dialog of all the > > printers in my domain. I can select which printers I want to be auto > > installed (during the initial setup dialog). A .vbs file is then > > automatically created just like one above. It contains all the printers > > that I chose during the dialog and is pushed into postinst.bat along with > > all the other items that need to be taken care of. This is convenient for > > me since I have over 30 printers of which I might only install 2-3. > > > > -----Original Message----- > > From: Niels de Groot [mailto:[EMAIL PROTECTED] > > Sent: Friday, January 23, 2004 3:07 PM > > To: '[EMAIL PROTECTED]' > > Subject: [Unattended] Unattended printer installation > > > > > > Hi everybody, > > > > I just found an interesting page on the web about installing printers > > unattended. > > By pushing a commandline similar to the following onto todo.pl you can > > install shared printers very easily. > > (I may have made a mistake with the escaped quotes, but I think the idea is > > clear enough) > > > > todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if /r > > \"\\server\printer\" /m \"description\"" > > > > For more information you can run "rundll32 printui.dll,PrintUIEntry /?" > > from a Windows 2000/XP commandline, or check Microsoft knowledgebase > > articles 314486 and/or 189105 > > > > You could also wrap this into an optional package by adding your favorite > > printers to a batch file in the \scripts directory... > > > > :: OPTIONAL: Install default network printers > > todo.pl "start /wait rundll32 printui.dll,PrintUIEntry /if /r > > \"\\server\printer\" /m \"description\"" > > > > > > This works best if the drivers needed are on the printserver. If not you > > can use for exapmle Windows built-in drivers by adding a few options to the > > commandline. Check the knowledge base for more details. > > > > Niels de Groot, > > [EMAIL PROTECTED] > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration See the > > breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > unattended-info mailing list [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/unattended-info > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > unattended-info mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/unattended-info > > > > -- Paul Griffith | York University, Dept. of Computer Science CSB1003A CS Technical Team | 4700 Keele Street,Toronto, Ontario, Canada M3J 1P3 [EMAIL PROTECTED] | Phone: 416-736-2100 x70258 Fax: 416-736-5872 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info