View Full Version : Adding new printer ports...


Steven Sinclair
10-23-2006, 08:49 PM
Is there any way to add new printer ports programmatically?

For example, I'd like to be able to create a batch file on my server that
will automatically add all the printer ports throughout the facility (we do
IP printing) and then (if possible) install the appropriate printer driver to
the respective port.

1. Add new port "acctglsr" (DNS says = 10.20.30.40)
2. Install HPLJ5 driver using the acctglsr port

Is this possible? Is any part of it possible? Just trying to automate some
things.

Thanx.

Alan Morris [MSFT]
10-24-2006, 01:18 AM
prnport.vbs in system32 for Standard TCP/IP ports.

On XP specify whether the port is raw or lpr mode if you are running server
2003 you can specify the hostname and the port will auto config using
settings in tcpmon.ini.

prndrvr.vbs to install signed drivers

prnmngr.vbs to install the printer

prncnfg.vbs to share and configure 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" <StevenSinclair@discussions.microsoft.com> wrote in
message news:BEB2B7D3-B0D8-4163-BA03-C6AD64501433@microsoft.com...
> Is there any way to add new printer ports programmatically?
>
> For example, I'd like to be able to create a batch file on my server that
> will automatically add all the printer ports throughout the facility (we
> do
> IP printing) and then (if possible) install the appropriate printer driver
> to
> the respective port.
>
> 1. Add new port "acctglsr" (DNS says = 10.20.30.40)
> 2. Install HPLJ5 driver using the acctglsr port
>
> Is this possible? Is any part of it possible? Just trying to automate some
> things.
>
> Thanx.