Re: Prndrvr.vbs
- From: "Mark [exmsft]" <reply@xxxxxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 17:25:55 -0600
"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
.
- Follow-Ups:
- Re: Prndrvr.vbs
- From: woef
- Re: Prndrvr.vbs
- References:
- Prndrvr.vbs
- From: woef
- Re: Prndrvr.vbs
- From: Michael Harris \(MVP\)
- Re: Prndrvr.vbs
- From: woef
- Re: Prndrvr.vbs
- From: Mark [exmsft]
- Re: Prndrvr.vbs
- From: woef
- Prndrvr.vbs
- Prev by Date: Re: End of String Character?
- Next by Date: Getting Perfmon data from object counters?
- Previous by thread: Re: Prndrvr.vbs
- Next by thread: Re: Prndrvr.vbs
- Index(es):
Relevant Pages
|