[cifs-protocol] [REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC InstallPrinterDriverFromPackage

Obaid Farooqi obaidf at microsoft.com
Thu Sep 27 22:16:04 UTC 2018

Hi Justin:
I’ll help you with this issue and will be in touch as soon as I have an answer.
Can you please send me the steps you performed to install this driver from a Windows 10 machine to a remote print server?

Obaid Farooqi
Escalation Engineer | Microsoft

Exceeding your expectations is my highest priority.  If you would like to provide feedback on your case you may contact my manager at ramagane at Microsoft dot com

From: Edgar Olougouna
Sent: Thursday, September 27, 2018 1:53 PM
To: Justin Stephenson <jstephen at redhat.com>
Cc: MSSolve Case Email <casemail at microsoft.com>; cifs-protocol at lists.samba.org
Subject: [REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC InstallPrinterDriverFromPackage

[+ case number, cc casemail, bcc dochelp]
Hello Justin, The case number 118092719108783 has been created for this inquiry. One of our engineers will follow-up soon.


From: Justin Stephenson <jstephen at redhat.com<mailto:jstephen at redhat.com>>
Sent: Thursday, September 27, 2018 1:17 PM
To: Interoperability Documentation Help <dochelp at microsoft.com<mailto:dochelp at microsoft.com>>
Cc: cifs-protocol at lists.samba.org<mailto:cifs-protocol at lists.samba.org>
Subject: Clarification on parsing printer driver inf failure - MSPAR RPC InstallPrinterDriverFromPackage


I am writing code which calls InstallPrinterDriverFromPackage() against Windows Server 2016 providing a valid pszInfPath retrieved from the output of a successful UploadPrinterDriverPackage() call. The upload is successful but the RPC InstallPrinterDriverFromPackage consistently fails with HRESULT 0x80070705(ERROR_UNKNOWN_PRINTER_DRIVER).

Upon the failure, event ID Number 213 is logged in the PrintService Operational event viewer with the following message:

Parsing inf (C:\Windows\System32\DriverStore\FileRepository\xeroxglobalprintdriver_pcl6.inf_amd64_37d0e6a31ac96d78\xerosglobalprintdriver_pcl6.inf) for printer driver testdriver failed (processor architecture Windows x64), error code 0x705, HRESULT 0x80070705.

The UserData details show:
    Label: ParseInfAndCommitFileQueue
    Message: PreSelectDriverEx failed
    InfPath: C:\Windows\System32\DriverStore\FileRepository\xeroxglobalprintdriver_pcl6.inf_amd64_37d0e6a31ac96d78\xerosglobalprintdriver_pcl6.inf
    DriverName: testdriver
    InstallSection: -
    ProcessorArchitecture: Windows x64
    LastError: 0x705
    HResult: 0x80070705

From a Windows 10 Client, I am able to install this printer driver using the same .inf file onto the remote Print Server manually without any issues.

I ran the InfVerif.exe tool from the Windows Developer Kit against the provided inf file and only a single warning was issued about an unused string. I would like to know why the inf parsing is failing, or if there some way to validate a user-provided inf file in the same way that is performed internally by this RPC install method.

I am attaching a packet capture taken on the Windows Server during the failure and also the .inf file used(excluding the several other driver installation files and directories).

Any other ideas what is happening here would be appreciated.

Thank you.

Justin Stephenson
Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/cifs-protocol/attachments/20180927/0d22bbb6/attachment-0001.html>

More information about the cifs-protocol mailing list