March 14, 200620 yr Hi,I am currently installing a number of the same printer in my XP deployment. I am using the following:cscript c:\windows\system32\prnport.vbs -a -r "ricoh2090-3079.someplace.co.uk" -h "ricoh2090-3112.someplace.co.uk" -o raw -n 9100 //nologoto create a port andrundll32 printui.dll,PrintUIEntry /ga /if /u /b "2090-3079" /f "C:\DRIVERS\PRINTERS\2090\RC19E12K.inf" /r "ricoh2090-3079.someplace.co.uk" /m "RICOH Aficio 2090 RPCS"to create a printer entry connecting to the port. Because of software I'm using it has to be done this way.Only problem is it's set to it's defaults, which aren't very good at all for this printer. So I'm looking for a way to adjust both the default printer properties (ie spooling etc) and printer preferences (ie default printer tray, etc.) without intervention. Can anyone help with this? I've looked for months to no avail.ThanksTom Mann
March 15, 200620 yr Hi,you can save/restore your printer's config using:(to save the config)rundll32.exe printui.dll,PrintUIEntry /Ss /n "Your_Printer's_Name" /a "<path_to>\<filename>.dat" g u m(and to restore it)rundll32.exe printui.dll,PrintUIEntry /Sr /n "Your_Printer's_Name" /a "<path_to>\<filename>.dat" g u mYou may have to play around with the options (g u m in the above example), but you can get an idea if you type in a command promptrundll32.exe printui.dll,PrintUIEntry /?Another option would be to use the printmig tool provided by microsoft. (get it here) CF[Edit]Fixed the command after mrguitarmann's comment. Edited March 21, 200620 yr by cancerface
March 15, 200620 yr Author Thank you all! This is exactly what I need! will try today and let you know how I get on.Thanks again
March 15, 200620 yr Author Cancerface your code worked well for me,I had to change the "RICOH Aficio 2090 RPCS" in your suggestion to 2090-3079, which is my printer name, I could never get the hang of that command line!Thank you!
March 15, 200620 yr @mrguitarmannOups, my bad, I meant to write the actual printer's name and not its model Oh well ...as long as it works no harm done CF
Create an account or sign in to comment