I need to use the IP rather than printserver option as a test for a future re-use of the script at a location that wont have a print server.
Can we assume that the printertype is correct since the error isn't -2? Or can an 1801 error be traceable to an incorrect printertype as well? Is there something else to check?
I've scoured the INF for the correct printertype but nothing matches up to the example. I'll quote the whole thing (using code to keep it small). Can you figure out what to use?
Code:
;
; hp color LaserJet 2500 PCL 6 driver installation file for MS Windows 2000
; Copyright © Copyright Hewlett-Packard 1996, 1997, 1998, 1999, 2000
; Copyright © OAK Technology, INC. 1998-2000
; All Rights Reserved
;
; Version section
[Version]
Signature="$Windows NT$"
Provider=HP
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
CatalogFile=HP2500P6.CAT
DriverVer=05/12/2003,4.20.2500.430
; Manufacturer section
[Manufacturer]
"HP" =HPLaserPrinter,NTx86.5.1.0x03,NTx86.5.1
; Model sections.
[HPLaserPrinter.NTx86.5.1.0x03]
;For Windows Server 2003
%Printer1%=HPBF342I.PMD,USBPRINT\Hewlett-Packardhp_co8E3D,LPTENUM\hewlett-packardhp_co8e3d,DOT4PRT\hewlett-packardhp_co8e3d,DOT4PRT\vid_03f0&pid_0717&rev_0400,hewlett-packardhp_co8e3d
[HPLaserPrinter.NTx86.5.1]
;For WinXP
%Printer1%=HPBF342I.PMD,USBPRINT\Hewlett-Packardhp_co8E3D,LPTENUM\hewlett-packardhp_co8e3d,DOT4PRT\hewlett-packardhp_co8e3d,DOT4PRT\vid_03f0&pid_0717&rev_0400,hewlett-packardhp_co8e3d
[HPLaserPrinter]
;For Win2k
%Printer1%=HPBF342I.PMD,DOT4PRT\Hewlett-Packardhp_co8E3D&BPRINT
%Printer1%=HPBF342I.PMD,DOT4PRT\Vid_03f0&Pid_0717&DOT4&BPRINT,hewlett-packardhp_co8e3d
; Installer Sections
[HPBF342I.PMD]
; To Disable Add Printer Auto Configuration: Remove "AUTOCFG_FILES" from the CopyFiles line below
DataSection=HPBF342I_DATA
CopyFiles=AUTOCFG_FILES,HPBF342I_FILES,LANGMON_FILES,LANGMON_DRVCOPY
DataFile=HPBF342I.PMD
; Data Sections
[HPBF342I_DATA]
DriverFile=HPBF342G.DLL
ConfigFile=HPBF342E.DLL
HelpFile=HPBF342E.HLP
LanguageMonitor=%HPDC_MONITOR%
; Copy Sections
[HPBF342I_FILES]
HPBF342E.DLL,HPBF342E.DL_
HPBF342G.DLL,HPBF342G.DL_
HPBF342I.PMD,HPBF342I.PM_
HPBF342E.HLP,HPBF342E.HL_
HPBAFD32.DLL,HPBAFD32.DL_
HPBFTM32.DLL,HPBFTM32.DL_
[AUTOCFG_FILES]
HPNRA.EXE,HPNRA.EX_
HPBOID.EXE,HPBOID.EX_
HPBPRO.EXE,HPBPRO.EX_
HPPAPML0.EXE,HPPAPML0.EX_
HPBNRAC2.DLL,HPBNRAC2.DL_
HPBMIAPI.DLL,HPBMIAPI.DL_
HPBOIDPS.DLL,HPBOIDPS.DL_
HPBPROPS.DLL,HPBPROPS.DL_
HPJCMN2U.DLL,HPJCMN2U.DL_
HPJIPX1U.DLL,HPJIPX1U.DL_
HPPAPTS0.DLL,HPPAPTS0.DL_
HPPASNM0.DLL,HPPASNM0.DL_
HPPAPML0.DLL,HPPAPML0.DL_
HPBMINI.DLL,HPBMINI.DL_
HPBF342G.HPI,HPBF342G.HP_
[LANGMON_FILES]
HPBMMON.DLL,HPBMMON.DL_
HPDOMON.DLL,HPDOMON.DL_
HPBHEALR.DLL,HPBHEALR.DL_
[LANGMON_DRVCOPY]
HPBMMON.DLL,HPBMMON.DL_
HPDOMON.DLL,HPDOMON.DL_
HPBHEALR.DLL,HPBHEALR.DL_
[DestinationDirs]
DefaultDestDir=66000
HPBF342I_FILES=66000
LANGMON_DRVCOPY=66000
LANGMON_FILES=66002
AUTOCFG_FILES=66000
; Localizable Strings
[Strings]
Printer1="HP Color LaserJet 2500 PCL 6"
DiskID1="hp color LaserJet 2500 PCL 6 Disk 1"
DiskID2="hp color LaserJet 2500 PCL 6 Disk 2"
HPDC_MONITOR="HP Master Monitor,HPBMMON.DLL"
; Sourcedisks section
[SourceDisksNames.x86]
1 = %DiskID1%,,,""
2 = %DiskID2%,,,""
[SourceDisksFiles.x86]
HPBF342E.DL_=2
HPBF342G.DL_=1
HPBF342I.PM_=1
HPBF342E.HL_=1
HPBAFD32.DL_=1
HPBFTM32.DL_=1
HPNRA.EX_ =1
HPBOID.EX_ =1
HPBPRO.EX_ =1
HPPAPML0.EX_=1
HPBNRAC2.DL_=1
HPBMIAPI.DL_=1
HPBOIDPS.DL_=1
HPBPROPS.DL_=1
HPJCMN2U.DL_=2
HPJIPX1U.DL_=1
HPPAPTS0.DL_=1
HPPASNM0.DL_=1
HPPAPML0.DL_=1
HPBMINI.DL_ =2
HPBF342G.HP_=1
HPBMMON.DL_ =1
HPBMMON.DLL =1
HPDOMON.DL_ =1
HPBHEALR.DL_=1