Addprinterdriver Error 2
Contents |
2006. Guest I have been using prndrvr.vbs and prnmgr.vbs to automate the installation of any one of the hundreds of printers in our organization. However recently I have been unable to use prndrvr.vbs to install unable to add printer driver win32 error code 87 new HP print drivers. Here is a typical command line that works fine to add
Prndrvr.vbs Error Code 2
a driver: cscript c:\test\prndrvr.vbs -a -h "C:\Test\4100" -i c:\test\4100\hp4100p5.inf -m "HP LaserJet 4100 PCL 5e" HP's new drivers have a different .inf format prndrvr.vbs error 87 and when I use the same command line to install those new format drivers, I receive an error. Here is a typical command line that would throw an error: cscript c:\test\prndrvr.vbs -a -h "C:\Test\3800" -i c:\test\3800\hp3800b.inf -m "HP w32 printer driver error mimaki Color LaserJet 3800 PCL 6" The error I receive is as follows: Unable to add printer driver HP LaserJet 3800 PCL 6 Win32 error code 2 With debug turned on: Debug: In function ParseCommandLine Debug: In function AddDriver Unable to add printer driver HP Color LaserJet 3800 PCL 6 Win32 error code 2 What do I mean by new format driver? Well, without posting the whole driver .inf here is an example of a driver's .inf [Strings] section that works fine: [Strings] Printer1="HP LaserJet 4100 PCL 5e" DiskID1="HP LaserJet 4100 PCL 5e Disk 1" DiskID2="HP LaserJet 4100 PCL 5e Disk 2" DiskID3="HP LaserJet 4100 PCL 5e Disk 3" HPDC_MONITOR="HP Master Monitor,HPBMMON.DLL" Here is an example of a driver's .inf [Strings] section that doesn't work: [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" Any HP driver that has a driver who's .inf [Strings] section looks similar to the first posting works fine. Any HP driver that has a driver who's .inf [Strings] section looks similar to the second posting failes with the "Win32 error code 2" error. Anyone have any ideas? Anyone else run into this problem? Eric , Oct 27, 2006 #1 Advertisements Alan Morris [MSFT] Guest error 2 is File Not Found. Are all the files in c:\test\3800 or in subdirectories under this? Did you attempt using both driver names with the same failure? -- Alan Morris Windows Printing Team Search the Microsoft Knowledge Base here: http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto This posting is provided "AS IS" with no warranties, and confers no rights. <> wrote in message news:... >I have been using prndrvr.vbs and prnmgr.vbs to automate the > installation of any one of the hundreds of printers in our > organization. However recently I have been unable to use prndrvr.
Studio 2015 products Visual Studio Team Services Visual Studio Code Visual Studio Dev Essentials Office Office Word/Excel/PowerPoint Microsoft Graph Outlook OneDrive/Sharepoint Skype Services Store Cortana Bing Application Insights Languages & platforms Xamarin ASP.NET C++ TypeScript .NET - VB, C#, F# Server Windows Server SQL Server BizTalk Server SharePoint Dynamics Programs & communities Students Startups Forums MSDN Subscriber downloads Sign http://www.pcreview.co.uk/threads/win32-error-code-2-when-using-prndrvr-vbs-with-latest-hp-print-drivers.2711467/ in Search Microsoft Search Windows Dev Center Windows Dev Center Explore What’s new for Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote https://msdn.microsoft.com/en-us/library/windows/desktop/dd183346(v=vs.85).aspx Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Explore What’s new for Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Printing Print Spooler API Printer Driver Installation Reference Printer Driver Installation Reference AddPrinterDriver AddPrinterDriver AddPrinterDriver AddMonitor AddPort AddPrinterDriver AddPrinterDriverEx AddPrintProcessor AddPrintProvidor CorePrinterDriverInstalled DeleteMonitor DeletePort DeletePrinterDriver DeletePrinterDriverEx DeletePrinterDriverPackage DeletePrintProcessor DeletePrintProvidor EnumMonitors EnumPorts EnumPrinterDrivers EnumPrintProcessorDatatypes EnumPrintProcessors GetCorePrinterDrivers GetPrinterDriver GetPrinterDriver2 GetPrinterDriverDirectory GetPrinterDriverPackagePath GetPrintProcessorDirectory Install
(32)Developer SEARCH Knowledgebase : Installation AddMonitor Error 1805 Problem: I'm receiving an "AddMonitor error 1805" and an "AddPrinter Error 1797" when http://helpdesk.win2pdf.com/index.php?/Knowledgebase/List/Index/1/installation attempting to install Win2PDF. Solution: These errors can occur when attempting to install an older version of Win2PDF on newer versions of Windows. The latest version... "Incorrect command line parameters" error when installing Win2PDF Problem:I'm receiving an "Incorrect command line parameters" error dialog when installing Win2PDF on printer driver Windows Server 2003. Solution:Make sure Windows Installer 3.1 is installed.  This can be downloaded from the following page:http://support.micr... "Please enter an integer" error when attempting to enter license ... Question:When entering my license code, I'm getting an error message stating "Please enter an integer." Answer: If you download addprinterdriver error 2 and install Win2PDF 3.5, it will allow you to enter your license code. You can download Win2PDF 3.5 from the followin... Acrobat coexistence Problem:Can Win2PDF be installed on a computer that already has Adobe Acrobat Professional installed? Will Win2PDF conflict with the PDF creation capabilities of Adobe Acrobat Professional? Solution:Win2PDF will not conflict with the full version of Ad... AddMonitor Error 5 Problem:I'm receiving an "AddMonitor Error 5" dialog when installing Win2PDF.Solution:This can be caused by a local security policy configuration under "Control Panel -> Administrative Tools -> Local Security Policy". Under &qu... AddPrinter Error 126 Problem: When installing Win2PDF on Windows XP I get the error message "AddPrinter error 126". Solution: Detailed instructions for resolving this error are at: http://www.win2pdf.com/doc/addprinter126error.htm [1] Links: ------ [1] http://www.win2pdf.co... AddPrinter Error 1722 Problem: When installing Win2PDF I am getting the message AddMonitor error 1722. Solution: T