Solved

Installing Network Printer by adding to existing batch file running during startup.

Posted on 2014-09-19
3
441 Views
Last Modified: 2014-11-12
Here is a copy of what I understand to be needed to run this install. I first need to set the IP path, then Install the Drivers, then Install the Printer from the Drivers. I have looked at http://www.robvanderwoude.com/2kprintcontrol.php and found myself lost. I am not one who knows about scripting, but am learning. Right now though I need to get this working.


md c:\drivers\ricoh
xcopy "\\server\RICOH Aficio SP 5210SF\z61821Lf\disk1" c:\drivers\ricoh /I /y /D
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Xs /n "RICOH Aficio SP 5210SF" PortName "192.168.1.15"
RUNDLL32 PRINTUI.DLL,PrintUIEntry /ia  /m "RICOH Aficio SP 5210SF" /h "Intel" /f C:\DRIVERS\Ricoh\OEMSETUP.INF
RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "RICOH Aficio SP 5210SF" /f C:\DRIVERS\Ricoh\OEMSETUP.INF /r "192.168.1.15" /m "RICOH Aficio SP 5210SF"
0
Comment
Question by:technologyone
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Herman D'Hondt earned 500 total points
Comment Utility
Have you actually created the TCP/IP port for the printer? If not, you can use PRNPORT.VBS to do that. If you're adding a local printer, you can use a command like:

cscript prnport.vbs -a -r PortName -h IPAddress

See http://technet.microsoft.com/en-us/library/bb490975.aspx for more details.
0
 

Author Comment

by:technologyone
Comment Utility
I have created the cscript and the printer port does show up, but still does not install.

new modified batch file:

Cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs" -a -r 192.168.1.15 -h 192.168.1.15
Cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs" -a -m "RICOH Aficio SP 5210SF" -i C:\DRIVERS\Ricoh\OEMSETUP.INF -h C:\DRIVERS\Ricoh
Cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs" -a -p "Accounting Ricoh" -m "RICOH Aficio SP 5210SF" -r 192.168.1.15
0
 

Author Closing Comment

by:technologyone
Comment Utility
Thanks for the help.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
This article will show, step by step, how to integrate R code into a R Sweave document
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now