Re: Error code 87 when installing remote print drivers...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



error 87 is invalid parameter.

I assume you've copied the driver files to the remote machine when using
prndrvr.vbs. The install will fail if the driver files are not local to the
remote machine.




--
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.

"MadKovalchuk17" <MadKovalchuk17@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EFD3D140-20DF-4BF3-81A8-8D29B623864F@xxxxxxxxxxxxxxxx
here is my code. Everytime I try to add a print driver, I get error
code 87. I try to use \\ instead of \ in the driver path and inf and it
still
does not work. I am able to install a printer if the driver already exists
on
the remote machine, but if I have to install a driver, it will not work
and
returns error code 87. I have tried prndrvr.vbs as well and I can install
the
driver to the local workstation, but once I try remote, it does not work.
Any
ideas?

objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")

objDriver = objWMIService.Get("Win32_PrinterDriver")

objWMIService.Security_.Privileges.AddAsString("SeLoadDriverPrivilege",
True)

objDriver.Name = "Lexmark E250dn"
objDriver.SupportedPlatform = "Windows NT x86"
objDriver.Version = "3"
objDriver.FilePath =
"C:\\lexmark\\Drivers\\Drivers\\Print\\Win_2KXP\\"
objDriver.Infname =
"C:\\lexmark\\Drivers\\Drivers\\Print\\Win_2KXP\\LMABJ740.inf"
Dim intResult = objDriver.AddPrinterDriver(objDriver)


.



Relevant Pages

  • Re: Windows 2003 installation on a naked Dell 1850 w/o floppy
    ... I tried to install Windows 2003 server standard edition on it. ... I need to use F6 to install Perc 4e/si driver since the ... SCSI driver files over using HP Drive Key Utility, ...
    (microsoft.public.windows.server.general)
  • Re: Windows 2003 installation on a naked Dell 1850 w/o floppy
    ... Install it to your server. ... I need to use F6 to install Perc 4e/si driver since the ... SCSI driver files over using HP Drive Key Utility, ...
    (microsoft.public.windows.server.general)
  • Re: Installing Printers
    ... if your printer has USB interface "USB printing support" ... With your printer driver files at hand, start XPE and plug in the printer ... Printer install from manufacturers require a huge space on disk, ...
    (microsoft.public.windowsxp.embedded)
  • Re: SYSTEM process
    ... the bottom line is you should not do the uninstall for the general ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... >> To install drivers you need no installer... ... The USB interface manufacturer provides us with a set of driver files ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Error code 87 when installing remote print drivers...
    ... If I have a user logged in on the remote machine that has mapped drives? ... I assume you've copied the driver files to the remote machine when using ... The install will fail if the driver files are not local to the ... Windows Printing Team ...
    (microsoft.public.windows.server.scripting)