Installing printers...

G

Guest

WinXPProSP2

Is there any way to design a batch file (or something similar) that will
automatically create printer ports and install network (IP-based) printers
against said ports?

Let's say I have twenty printers connected to jetdirect print servers...I
would like to be able to "programmatically" install the printers to a
workstation without user intervention.

Thanx.
 
A

Alan Morris [MSFT]

use the prn*.vbs scripts in system32

prnport.vbs will create the port (on XP you need to specify the port
configuration in the switch options.
prndrvr.vbs will install signed drivers (use rundll32 on printui to install
non signed drivers)
prnmngr.vbs will add the printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Would you happen to have an example?

Thanx.

Alan Morris said:
use the prn*.vbs scripts in system32

prnport.vbs will create the port (on XP you need to specify the port
configuration in the switch options.
prndrvr.vbs will install signed drivers (use rundll32 on printui to install
non signed drivers)
prnmngr.vbs will add the printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Steven Sinclair said:
WinXPProSP2

Is there any way to design a batch file (or something similar) that will
automatically create printer ports and install network (IP-based) printers
against said ports?

Let's say I have twenty printers connected to jetdirect print servers...I
would like to be able to "programmatically" install the printers to a
workstation without user intervention.

Thanx.
 
A

Alan Morris [MSFT]

prnport /?

prnport -a -h IP or Hostname -o RAW -n 9100

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Steven Sinclair said:
Would you happen to have an example?

Thanx.

Alan Morris said:
use the prn*.vbs scripts in system32

prnport.vbs will create the port (on XP you need to specify the port
configuration in the switch options.
prndrvr.vbs will install signed drivers (use rundll32 on printui to
install
non signed drivers)
prnmngr.vbs will add the printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no
rights.

Steven Sinclair said:
WinXPProSP2

Is there any way to design a batch file (or something similar) that
will
automatically create printer ports and install network (IP-based)
printers
against said ports?

Let's say I have twenty printers connected to jetdirect print
servers...I
would like to be able to "programmatically" install the printers to a
workstation without user intervention.

Thanx.
 
G

Guest

Cool.

Okay...I have the "port" part complete. Now, let's say I have all my printer
drivers available on a network resource as follows:

F:\Printers\HPLJ2100
F:\Printers\IBMIP12
F:\Printers\CBJ3200
etc.

How would I go about using the other "printer" vbs? Also, what do you mean
by "signed" and "unsigned" drivers?

Thanx again.



Alan Morris said:
prnport /?

prnport -a -h IP or Hostname -o RAW -n 9100

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Steven Sinclair said:
Would you happen to have an example?

Thanx.

Alan Morris said:
use the prn*.vbs scripts in system32

prnport.vbs will create the port (on XP you need to specify the port
configuration in the switch options.
prndrvr.vbs will install signed drivers (use rundll32 on printui to
install
non signed drivers)
prnmngr.vbs will add the printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no
rights.

message WinXPProSP2

Is there any way to design a batch file (or something similar) that
will
automatically create printer ports and install network (IP-based)
printers
against said ports?

Let's say I have twenty printers connected to jetdirect print
servers...I
would like to be able to "programmatically" install the printers to a
workstation without user intervention.

Thanx.
 
A

Alan Morris [MSFT]

All the scripts display help with /?

If you can add the printer driver using the Add Driver Wizard and you get
the Green (this driver is signed) indicator then it's signed.

prnport -a -otherswitch -r PORTNAME
prndrvr -a -m "HP CANON IBM Model name" -i F:\Printers\HPLJ2100\HPINFname -h
F:\Printers\HPLJ2100 -v 3 -e "Windows NT x86"

You can get the model name from the infs. Change the -e option if you are
installing this on x64.

prnmngr -a -p LOCALPRINTERNAME -m "HP CANON IBM Model name" -r PORTNAME



--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Steven Sinclair said:
Cool.

Okay...I have the "port" part complete. Now, let's say I have all my
printer
drivers available on a network resource as follows:

F:\Printers\HPLJ2100
F:\Printers\IBMIP12
F:\Printers\CBJ3200
etc.

How would I go about using the other "printer" vbs? Also, what do you mean
by "signed" and "unsigned" drivers?

Thanx again.



Alan Morris said:
prnport /?

prnport -a -h IP or Hostname -o RAW -n 9100

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no
rights.

Steven Sinclair said:
Would you happen to have an example?

Thanx.

:

use the prn*.vbs scripts in system32

prnport.vbs will create the port (on XP you need to specify the port
configuration in the switch options.
prndrvr.vbs will install signed drivers (use rundll32 on printui to
install
non signed drivers)
prnmngr.vbs will add the printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no
rights.

message WinXPProSP2

Is there any way to design a batch file (or something similar) that
will
automatically create printer ports and install network (IP-based)
printers
against said ports?

Let's say I have twenty printers connected to jetdirect print
servers...I
would like to be able to "programmatically" install the printers to
a
workstation without user intervention.

Thanx.
 

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