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 Universal Print driver silent /bat/pscexec

Posted on 2014-02-13
1
890 Views
Last Modified: 2014-03-06
I need a way to install a the unversal printer driver for HP PCL 5 64 bit.  I have a script see below to install the printers once the driver is already installed now I need to install the driver:
          
 echo C:\prnport.vbs -s %_pc% -a -r IP_10.186.196.118 -h 10.186.196.118 -o RAW -n 9100
  cscript /nologo C:\prnport.vbs -s %_pc% -a -r IP_10.186.196.118 -h 10.186.196.118 -o RAW -n 9100
echo c:\prnmngr.vbs -s %_pc% -a -p "wrmp3ns102" -m "hp universal printing PCL 5" -r "IP_10.186.196.118"
  cscript /nologo c:\prnmngr.vbs -s %_pc% -a -p "wrmp3ns102" -m "hp universal printing PCL 5" -r "IP_10.186.196.118"

I konw the driver is hpmd155t.inf but how to put into this script???
0
Comment
Question by:WellingtonIS
1 Comment
 
LVL 16

Accepted Solution

by:
DansDadUK earned 500 total points
ID: 39858623
No idea how to achieve what you want, but I'd just point out that .inf files are not drivers, as such: they are driver information files, which point to various other files.

View the contents of one (open it using NotePad) to see what I mean.

Here is the contents of hpbuio50f.inf, associated with a printer FAX driver (the ones describing print capabilities are usually much larger):

; (C) Copyright 2011 Hewlett-Packard Development Company, L.P.

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%MFG%
DriverVer=06/25/2012,1.0.0.200
CatalogFile=hpbuio50f.cat

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%MFG%=Models,ntx86,ntamd64


[Models.ntx86]
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_082A&REV_0100&MI_02
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_252A&REV_0100&MI_02
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_6212&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_AB11&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_BF11&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_C011&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_142A&REV_0100&MI_02
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_122A&REV_0100&MI_02

[Models.ntamd64]
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_082A&REV_0100&MI_02
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_252A&REV_0100&MI_02
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_6212&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_AB11&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_BF11&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_C011&REV_0100&MI_03
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_142A&REV_0100&MI_02
"HP Printer (Fax)"=Fax,USB\VID_03F0&PID_122A&REV_0100&MI_02

[Fax]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x2
Capabilities=0x33
AddReg=Common_AddReg,Fax_AddReg

[Fax.HW]
AddReg=Fax_HW_AddReg

[Fax.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[Common_AddReg]
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*NTKERN

[Fax_AddReg]
HKR,,NTMPDriver,,"usbscan.sys"

[Fax_HW_AddReg]
HKR,,"LaserFax",0x00010001,0x1

[Strings]
MFG="Hewlett-Packard"

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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