?
Solved

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

Posted on 2014-09-19
3
Medium Priority
?
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
hdhondt earned 2000 total points
ID: 40334277
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
ID: 40341724
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
ID: 40438362
Thanks for the help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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…
Suggested Courses

800 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