We have more than 100 printers running in our company. In order to automate the installation of any of the printers i use prndrvr.vbs and prnmgr.vbs. I was using this since years but since yesterday there seems to be some problem. I was trying to install a new HP Printer driver using the same prndrvr.vbs but it wont allow me to that anymore. I use to the run the following typical command line that works fine to add a driver:
I think this is because HP's new drivers have a different .inf format, hence i am getting the error message when trying to use the same command line. The error message says something like this: "Unable to add printer driver HP LaserJet 3800 PCL 6 Win32 error code 2"cscript c:\test\prndrvr.vbs -a -h "C:\Test\4100" -i
c:\test\4100\hp4100p5.inf -m "HP LaserJet 4100 PCL 5e"
When i run the debug, i get this result:
Here is an example of a driver's .inf [Strings] section that doesn't work:Debug: In function ParseCommandLine
Debug: In function AddDriver
Unable to add printer driver HP Color LaserJet 3800 PCL 6 Win32 error code 2
[Strings]
PrinterClassName="Printers"
DiskID="HP Color LaserJet 3800 PCL Printer Driver Disk"
PRINT_PROCESSOR="HPZPP41w,hpzpp41w.DLL"
HP="HP"
HP_Mombi_Driver_Name="HP Color LaserJet 3800 PCL 6"
HP_Wizard_Driver_Name="HP Color LaserJet 3800 PCL6"
Please help.
Bookmarks