Re: Prndrvr.vbs



"woef" <woef20@xxxxxxxxxxx> wrote in message
news:OytuLjOqFHA.3744@xxxxxxxxxxxxxxxxxxxxxxx
> C:\WINDOWS\system32>cscript aa.vbs -a -m "testdriver"
> Microsoft (R) Windows Script Host Version 5.6
> Copyright (C) Microsoft Corporation 1996-2001. All rights res
>
> Debug: In function ParseCommandLine
> Debug: In function AddDriver
> Unable to add printer driver testdriver Win32 error code 87
>
>

well, i was hoping that you would have run the script with the exact same
parameters so i could really tell what was happening, but here's what's
happening with this new set of parameters.

in the AddDriver function, the wmi connection to the local server is
succeeding, but when the call the WMI method AddPrinterDriver is called, it
is returning error 87, which is "the parameter is incorrect" (you can find
out by using the "net helpmsg" command: net helpmsg 87).

I would venture to guess that this is because some of the information for
adding the printer driver is either missing or incorrect. double check to
see that the driver file actually exists in c:\temp and that your path to
the .INF file is also correct.

thanks,
Mark


.



Relevant Pages

  • Re: COM and ASP
    ... I have been able to set up a debug image, whereat I see the following outputs. ... which could be more specific to my ASP problem: ... Microsoft Corporation ... dim strPersonalName ...
    (microsoft.public.windowsce.embedded)
  • Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st
    ... files to the web server and keep getting sharing violation. ... xcopy filename1.dll destdir ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ...
    (microsoft.public.inetserver.iis)
  • Re: cscript sometimes fails to run JScript
    ... I have written a JScript that I execute under cscript from the Windows ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ... CScript Error: Initialization of the Windows Script Host failed. ...
    (microsoft.public.scripting.wsh)
  • Re: adding disclaimer with visual basic SMTP transport event sink
    ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ... Binding Display Name Specified: SMTPScriptingHost ...
    (microsoft.public.exchange.admin)
  • Re: how to enble icf remotely
    ... That is only half the problem, you need to determine the interface you ... turn on and off ICF for any or all interfaces. ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ...
    (NT-Bugtraq)