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
Solved

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

Posted on 2014-09-19
3
452 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:
hdhondt earned 500 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

A short article about a problem I had getting the GPS LocationListener working.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …

828 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