Solved

prndrvr.vbs and Kyocera 4200DN

Posted on 2013-05-29
3
1,724 Views
Last Modified: 2013-06-24
I have a script that I am writing to add the drivers for a Kyocera 4200DN printer to several PCs.

No matter how I format the syntax, I get error code 87.

Here is the part of the batch file that I am having problems with:

cscript c:\windows\system32\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "Kyocera FS-4200DN KX" -v 3 -e "Windows NT x86" -s \\PCAddingDriverto -h "\\server\drivers\Kyocera FS-4200DN\KYOCERA_FS_4200DN\PrnDrv\KXDriver\32bit\XP and newer" -i "\\server\drivers\Kyocera FS-4200DN\KYOCERA_FS_4200DN\PrnDrv\KXDriver\32bit\XP and newer\OEMSETUP.inf"
0
Comment
Question by:Firstcom
[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
  • 2
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39213986
can u post the.inf file please?
0
 
LVL 1

Author Comment

by:Firstcom
ID: 39220090
Here is the .inf file.

;================================================================
;
;  OEMSETUP.INF
;
;  KYOCERA Document Solutions Printing System Installation Script
;  Windows 2000 and XP (Multi Language excluding Japanese)
;  Point & Print Version
;  
;  (C) 2012 KYOCERA Corporation, KYOCERA Document Solutions Inc.
;
;  KMSL 7.8x  03/20/2012
;
;================================================================

[Version]
Signature  = "$Windows NT$"
Class      = Printer
ClassGUID  = {4D36E979-E325-11CE-BFC1-08002BE10318}
Provider   = %KMC%
CatalogFile= KYOMITA.CAT
DriverVer  = 03/20/2012,5.3.1520
DriverIsolation=2

[ClassInstall]
AddReg=ClassAddReg
DelReg=ClassDelReg

[ClassAddReg]
HKR,,,,%CLASSNAME%
HKR,,Installer,,MSPRINT.DLL
HKR,,Icon,,-4
HKR,,NoDisplayClass,,1

[ClassDelReg]
HKLM,"System\CurrentControlSet\Services\Class\Printer","NoUseClass"

[Environment]
UpdateInis=EnvUpdateInis
AddReg=EnvAddReg

[EnvUpdateInis]
win.ini,Ports,"LPT1.DOS=",
win.ini,Ports,"LPT2.DOS=",
win.ini,Ports,"LPT3.DOS=",
win.ini,Ports,"LPT1.OS2=",
win.ini,Ports,"LPT2.OS2=",
win.ini,Ports,"LPT3.OS2=",
win.ini,windows,"Spooler=",
win.ini,windows,"DosPrint=",
win.ini,windows,"DeviCENotSelectedTimeout=",
win.ini,windows,"TransmissionRetryTimeout=",

[EnvAddReg]
HKLM,"System\CurrentControlSet\Control\Print\Environments\Windows 4.0","Directory",,"CHICAGO"
HKLM,"System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Drivers",,,
HKLM,"System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Print Processors",,,
HKLM,"System\CurrentControlSet\Control\Print\Monitors",,,
HKLM,"System\CurrentControlSet\Control\Print\Printers",,,
HKLM,"System\CurrentControlSet\Control\Print\Printers","StartOnBoot",1,01,00,00,00
HKLM,"System\CurrentControlSet\Control\Print\Providers",,,

;----------------------------------------------------------------
; Manufacturer Section
;----------------------------------------------------------------
[Manufacturer]
Kyocera=Kyocera,NTx86.5.1,NTx86.6.0


;----------------------------------------------------------------
; Model Sections
;----------------------------------------------------------------
[Kyocera.NTx86.5.1]
"Kyocera FS-4300DN KX"      = FS_4300DN,WSDPRINT\KyoceraFS-4300DN6445,FS-4300DN
"Kyocera FS-4300DN KX"      = FS_4300DN,USBPRINT\KyoceraFS-4300DN6445,FS-4300DN
"Kyocera FS-4300DN KX"      = FS_4300DN,LPTENUM\KyoceraFS-4300DN6445,FS-4300DN
"Kyocera FS-4200DN KX"      = FS_4200DN,WSDPRINT\KyoceraFS-4200DNA478,FS-4200DN
"Kyocera FS-4200DN KX"      = FS_4200DN,USBPRINT\KyoceraFS-4200DNA478,FS-4200DN
"Kyocera FS-4200DN KX"      = FS_4200DN,LPTENUM\KyoceraFS-4200DNA478,FS-4200DN
"Kyocera FS-4100DN KX"      = FS_4100DN,WSDPRINT\KyoceraFS-4100DNA43C,FS-4100DN
"Kyocera FS-4100DN KX"      = FS_4100DN,USBPRINT\KyoceraFS-4100DNA43C,FS-4100DN
"Kyocera FS-4100DN KX"      = FS_4100DN,LPTENUM\KyoceraFS-4100DNA43C,FS-4100DN
"Kyocera FS-2100DN KX"      = FS_2100DN,WSDPRINT\KyoceraFS-2100DNC23C,FS-2100DN
"Kyocera FS-2100DN KX"      = FS_2100DN,USBPRINT\KyoceraFS-2100DNC23C,FS-2100DN
"Kyocera FS-2100DN KX"      = FS_2100DN,LPTENUM\KyoceraFS-2100DNC23C,FS-2100DN
"Kyocera FS-2100D KX"      = FS_2100D,WSDPRINT\KyoceraFS-2100D7D49,FS-2100D
"Kyocera FS-2100D KX"      = FS_2100D,USBPRINT\KyoceraFS-2100D7D49,FS-2100D
"Kyocera FS-2100D KX"      = FS_2100D,LPTENUM\KyoceraFS-2100D7D49,FS-2100D

[Kyocera.NTx86.6.0]
"Kyocera FS-4300DN KX"      = FS_4300DN,WSDPRINT\KyoceraFS-4300DN6445,FS-4300DN
"Kyocera FS-4300DN KX"      = FS_4300DN,USBPRINT\KyoceraFS-4300DN6445,FS-4300DN
"Kyocera FS-4300DN KX"      = FS_4300DN,LPTENUM\KyoceraFS-4300DN6445,FS-4300DN
"Kyocera FS-4200DN KX"      = FS_4200DN,WSDPRINT\KyoceraFS-4200DNA478,FS-4200DN
"Kyocera FS-4200DN KX"      = FS_4200DN,USBPRINT\KyoceraFS-4200DNA478,FS-4200DN
"Kyocera FS-4200DN KX"      = FS_4200DN,LPTENUM\KyoceraFS-4200DNA478,FS-4200DN
"Kyocera FS-4100DN KX"      = FS_4100DN,WSDPRINT\KyoceraFS-4100DNA43C,FS-4100DN
"Kyocera FS-4100DN KX"      = FS_4100DN,USBPRINT\KyoceraFS-4100DNA43C,FS-4100DN
"Kyocera FS-4100DN KX"      = FS_4100DN,LPTENUM\KyoceraFS-4100DNA43C,FS-4100DN
"Kyocera FS-2100DN KX"      = FS_2100DN,WSDPRINT\KyoceraFS-2100DNC23C,FS-2100DN
"Kyocera FS-2100DN KX"      = FS_2100DN,USBPRINT\KyoceraFS-2100DNC23C,FS-2100DN
"Kyocera FS-2100DN KX"      = FS_2100DN,LPTENUM\KyoceraFS-2100DNC23C,FS-2100DN
"Kyocera FS-2100D KX"      = FS_2100D,WSDPRINT\KyoceraFS-2100D7D49,FS-2100D
"Kyocera FS-2100D KX"      = FS_2100D,USBPRINT\KyoceraFS-2100D7D49,FS-2100D
"Kyocera FS-2100D KX"      = FS_2100D,LPTENUM\KyoceraFS-2100D7D49,FS-2100D

;----------------------------------------------------------------
; Install Sections for NT5.1 (XP)
;----------------------------------------------------------------
[FS_4300DN]
CopyFiles      = @KMF10710.MDX,PCXML,WINXP,ALLPDL,KM_AGFA,3D_143,KC_HELP,KMPJLMN_DLL,AUTOCONFIG,KACT2
DataFile      = KMF10710.MDX
DataSection      = XPCORE
AddReg            = ND_ADDREG_KCMV3D
LanguageMonitor      = %KMPJLMN%

[FS_4200DN]
CopyFiles      = @KMF10610.MDX,PCXML,WINXP,ALLPDL,KM_AGFA,3D_143,KC_HELP,KMPJLMN_DLL,AUTOCONFIG,KACT2
DataFile      = KMF10610.MDX
DataSection      = XPCORE
AddReg            = ND_ADDREG_KCMV3D
LanguageMonitor      = %KMPJLMN%

[FS_4100DN]
CopyFiles      = @KMF10510.MDX,PCXML,WINXP,ALLPDL,KM_AGFA,3D_143,KC_HELP,KMPJLMN_DLL,AUTOCONFIG,KACT2
DataFile      = KMF10510.MDX
DataSection      = XPCORE
AddReg            = ND_ADDREG_KCMV3D
LanguageMonitor      = %KMPJLMN%

[FS_2100DN]
CopyFiles      = @KMF10410.MDX,PCXML,WINXP,ALLPDL,KM_AGFA,3D_144,KC_HELP,KMPJLMN_DLL,AUTOCONFIG,KACT2
DataFile      = KMF10410.MDX
DataSection      = XPCORE
AddReg            = ND_ADDREG_KCMV3D
LanguageMonitor      = %KMPJLMN%

[FS_2100D]
CopyFiles      = @KMF10310.MDX,PCXML,WINXP,ALLPDL,KM_AGFA,3D_144,KC_HELP,KMPJLMN_DLL,AUTOCONFIG,KACT2
DataFile      = KMF10310.MDX
DataSection      = XPCORE
AddReg            = ND_ADDREG_KCMV3D
LanguageMonitor      = %KMPJLMN%


;----------------------------------------------------------------
; Copy Sections
;----------------------------------------------------------------

; This should be used for NT User Mode Driver
[WINXP]
KMUC53FK.DLL
KMUU53FK.DLL
KMFS53FK.DLL
KMRG53FK.DLL
KMRC53FK.DLL
KM3D53FK.DLL
KM3M53FK.DLL
KMPE53FK.DLL
KMWM53FK.DLL
KMPF53FK.DLL
KMPO53FK.DLL
KMSP53FK.DLL
KMCO53FK.DLL
KMPLSW02.DLL
KMPLSWIP.DLL
KMPLID01.DLL
KMIEDIT.DLL
KMIEDITRES.DLL
KCMV3D.INI
CONFIDENTIAL.MIE
NOCOPY.MIE
KMPRPVW.EXE
KMPOPUPMGR.EXE
KMPC53FK.DLL
PMCLIENT.DLL

[ALLPDL]
KMXL53FK.DLL
KM5E53FK.DLL
KM5C53FK.DLL
KMPS53FK.DLL
KMPD53FK.DLL

[KM_AGFA]
KMAGFA1.FDF
KMPRE2.FDF

[KC_HELP]
KMGKEN29.CHM

[3D_143]
KM314310.dat

[3D_144]
KM314410.dat

[KMPJLMN_DLL]
KMPJLMN.DLL

;[KMSTMN_DLL]
;KMSTMNW.EXE
;KMSTMVM.EXE
;KMSTMNET.EXE
;KMSTMNWS.INI
;KMSTMNET.INI
;KcMV3Da.DLL

[PCXML]
KMBASE.XML

[AUTOCONFIG]
KMAUTOC04.INI
KMQUERY04.XML

[KACT2]
KACT2.EXE

;----------------------------------------------------------------
; Data Sections
;
; These sections contain data that is shared between devices.
;
;----------------------------------------------------------------
;
[XPCORE]
DriverFile=KMUC53FK.DLL
ConfigFile=KMUU53FK.DLL
HelpFile=KMGKEN29.CHM

[XPCORE_NOPOST]
DriverFile=KMUC53FK.DLL
ConfigFile=KMUU53FK.DLL
HelpFile=KMGKEN29.CHM

;[ENABLE3D]
;HKLM,"SOFTWARE\Kyocera Mita\Shared Files","Install Path",0,"%11%\spool\drivers\w32x86\2"

[ND_ADDREG_KCMV3D]
HKLM,"SOFTWARE\Kyocera Mita\Shared Files","Install Path",0,"%11%\spool\drivers\w32x86\2"

;
; Call SetupSetDirectoryId with 66000 to set the target directory at runtime
; (depending on which environment drivers are getting installed)
;

[PrinterPackageInstallation.x86]
PackageAware=TRUE

;----------------------------------------------------------------
; Destination Information
;----------------------------------------------------------------
[DestinationDirs]
DefaultDestDir=66000
POSTINSTALL=11
KMPMKNT_DLL=11
KMPJLMN_DLL=11


;----------------------------------------------------------------
; Source Information
;----------------------------------------------------------------
;
[SourceDisksNames.x86]
1 = %CDROM%,,,""

[SourceDisksFiles]
KMUC53FK.DLL  = 1
KMUU53FK.DLL    = 1
KMFS53FK.DLL  = 1
KMRG53FK.DLL  = 1
KMRC53FK.DLL     = 1
KMXL53FK.DLL   = 1
KM5E53FK.DLL   = 1
KM5C53FK.DLL   = 1
KMPS53FK.DLL   = 1
KMPD53FK.DLL   = 1
KMSP53FK.DLL      = 1
KMPE53FK.DLL      = 1
KMWM53FK.DLL            = 1
KMPF53FK.DLL      = 1
KMPO53FK.DLL      = 1
KM3D53FK.DLL            = 1
KM3M53FK.DLL            = 1
KMCO53FK.DLL      = 1
KMPLSW02.DLL      = 1
KMPLSWIP.DLL      = 1
KMPLID01.DLL      = 1
KMIEDIT.DLL      = 1
KMIEDITRES.DLL      = 1
KMAGFA1.FDF        = 1
KMPRE2.FDF            = 1
KMPRPVW.EXE      = 1
KMPC53FK.DLL = 1
PMCLIENT.DLL      = 1

KMF10710.MDX      = 1
KMF10610.MDX      = 1
KMF10510.MDX      = 1
KMF10410.MDX      = 1
KMF10310.MDX      = 1

KM314310.dat      = 1
KM314410.dat      = 1
KMBASE.XML      = 1
KMGKEN29.CHM      = 1
KCMV3D.INI            = 1
KMPJLMN.DLL            = 1
KMAUTOC04.INI      = 1
KMQUERY04.XML      = 1
KACT2.EXE      = 1
; Status Monitor
;KMSTMNW.EXE      = 1
;KMSTMVM.EXE      = 1
;KMSTMNET.EXE      = 1
;KMSTMNWS.INI      = 1
;KMSTMNET.INI      = 1
;KcMV3Da.DLL      = 1
KMPOPUPMGR.EXE    = 1
NOCOPY.MIE            = 1
CONFIDENTIAL.MIE       = 1

;----------------------------------------------------------------
; Localizable Strings
;----------------------------------------------------------------
[Strings]
KMPJLMN      = "KM Language Monitor,KMPJLMN.DLL"
KMPMKNT         = "KM USB Port,KM-PMKN.DLL"
CDROM            = "Kyocera"
CLASSNAME = "Printers"
KMC      = "KYOCERA Document Solutions Inc."
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 39221196
try put double quotes in the -s parameter:
-s "\\PCAddingDriverto"
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

733 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