Solved

Installing Universal Print driver silent /bat/pscexec

Posted on 2014-02-13
1
876 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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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