Script to install a printer with settings exported from file dat

S

SP

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?
 
D

David H. Lipman

From: "SP" <[email protected]>

| 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?

I suggest posting this in a scripting News Group such as...

microsoft.public.windows.server.scripting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top