Solved

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

Posted on 2014-09-19
3
462 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 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

695 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