Solved

Installing Universal Print driver silent /bat/pscexec

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

18 Experts available now in Live!

Get 1:1 Help Now