Script to install a printer with settings exported from file dat



I must install a printer in a set of computer and set the special
redirect port (redmon) properties as in my computer.

I've try with these:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /ia /m "Apple Color LW 12/660 PS" /n
"printer" /f %windir%\inf\ntprint.inf
RUNDLL32 PRINTUI.DLL,PrintUI /Sr /n "printer" /a "file.dat"

where file.dat is the file that Store all printer settings of my local
printed correctly configured
(RUNDLL32 PRINTUI.DLL,PrintUIEntry /Ss /n "printer" /a "file.dat")

If I try to run the first two line in a computer where there wasn't the
printer the first go right but
RUNDLL32 PRINTUI.DLL,PrintUI /Sr /n "printer" /a "file.dat" give an
error.

Can you help me?

.



Relevant Pages


Loading