Setup local printer with IP address with batch file

K

kwstroud

We have had some issues on our server when we install network
printers, so I have always setup printers using the following method:

1- Select "Local printer attached to this computer"
2- Create new port:Standard TCP/IP Port
3- Enter the IP address of the printer
4- I always select "Have Disk" and browse to a specifice Drive where
the driver can be found, say P:\PrintDrivers\HP4350\PCL5 and select
the inf file.
5- I then select the appropriate printer - HP4350 PCL 5e
6- I may then decide to name it something other than the default name-
Downstairs
7- May or may not make it the Default Printer
8- Do not share
9- Do not print test page
10- Finish

Is there anyway to put all of these commands in a .bat file?
 
A

Alan Morris [MSFT]

use the printer vbs files in system32

prnport.vbs to add the tcp port
prndrvr.vbs to add the signed driver (you may need to expand all the driver
files on the install share)
prnmngr.vbs to add the local printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

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

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