Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
If you don't know how to downgrade, my instructions below should be helpful.
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…
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 …

864 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

22 Experts available now in Live!

Get 1:1 Help Now