Solved

Installing Universal Print driver silent /bat/pscexec

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

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

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

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

636 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