[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cifs-protocol
Subject:    Re: [cifs-protocol] [REG:118110619312577] Clarification on parsing printer driver inf failure - MSPA
From:       Obaid Farooqi via cifs-protocol <cifs-protocol () lists ! samba ! org>
Date:       2018-11-06 21:13:02
Message-ID: DM5PR21MB0825089BDAE366D68BECB5FCC6CB0 () DM5PR21MB0825 ! namprd21 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Hi Justin:
I will set up a workspace for this new case and let you know ASAP.


Regards,
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: Justin Stephenson <jstephen@redhat.com>
Sent: Tuesday, November 6, 2018 10:45 AM
To: Obaid Farooqi <obaidf@microsoft.com>
Cc: MSSolve Case Email <casemail@microsoft.com>; cifs-protocol@lists.samba.org
Subject: Re: [REG:118092719108783] Clarification on parsing printer driver inf \
failure - MSPAR RPC InstallPrinterDriverFromPackage

Hello Obaid,

I am seeing the same error when trying to install a different driver inf file, I am \
using the first left-hand-side value(HP Color LaserJet 3800) in the Model section as \
the pszDriverName input.

The InstallPrinterDriverFromPackage() method returns HRESULT 0x80070705 with the \
event log error "Parsing inf for printer driver HP Color LaserJet 3800 failed, error \
code 0x705, HRESULT 0x80070705"

I tried to upload a trace of the failed reproducer but the \
support.microsoft.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F \
support.microsoft.com&data=02%7C01%7Cobaidf%40microsoft.com%7C9b405f4550464dbe7e8a08d6 \
44074a92%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636771195461118401&sdata=RWRbN601sroHxi1qHoLNrgZ6HzdOlBZqIe3pGMNmXBs%3D&reserved=0> \
Secure file link gives me an error when trying to attach the file: \
"printscan_print.etl - file upload failed".

Are you able to help look into this?

Thank you,

-Justin

On Fri, Oct 5, 2018 at 7:30 PM Obaid Farooqi \
<obaidf@microsoft.com<mailto:obaidf@microsoft.com>> wrote: Hi Justin:
I debugged to see how it goes over my inf file.
First it tries to compare with "DriverName" value, then "CompatName" value and then \
it starts in Model section and compares with left-hand-side value in Model section.

For more info on inf files, please see informative references in MS-PAR document.
Please let me know if it does not answer your question.

Regards,
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: Justin Stephenson <jstephen@redhat.com<mailto:jstephen@redhat.com>>
Sent: Wednesday, October 3, 2018 8:05 AM
To: Obaid Farooqi <obaidf@microsoft.com<mailto:obaidf@microsoft.com>>
Cc: MSSolve Case Email <casemail@microsoft.com<mailto:casemail@microsoft.com>>; \
                cifs-protocol@lists.samba.org<mailto:cifs-protocol@lists.samba.org>
Subject: Re: [REG:118092719108783] Clarification on parsing printer driver inf \
failure - MSPAR RPC InstallPrinterDriverFromPackage

Hello Obaid,

That fixed it! I suspected a bit ago the name might need to match, before opening the \
ticket I tried with the driver name "XeroxGlobalPrintDriverV4_PCL6" but it failed \
with the same error 0x80070705.

Could you help clarify where Windows checks against to validate the driver name \
string, is it the first field value in the [Model] section of the driver inf file? \
That information will help me improve my code ensuring the driver name matches \
correctly before attempting the install.

It would be great to add some mention of this driver name validation in the MS-PAR \
technical document, currently the ERROR_UNKNOWN_PRINTER_DRIVER information in the \
spec only discusses problems with derived print drivers.

Thanks much for your help Obaid!

Kind regards,
Justin Stephenson

On Tue, Oct 2, 2018 at 6:33 PM Obaid Farooqi \
<obaidf@microsoft.com<mailto:obaidf@microsoft.com>> wrote: Hi Justin:
I think I know why it is failing. The pszDriverName in your \
RpcAsyncInstallPrinterDriverFromPackage is equal to testdriver. None of the drivers \
in your package is named testdeiver. Try the names from inf you are using like e.g. \
"Xerox Global Print Driver V4 PCL6"

Regards,
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: Justin Stephenson <jstephen@redhat.com<mailto:jstephen@redhat.com>>
Sent: Tuesday, October 2, 2018 3:49 PM
To: Obaid Farooqi <obaidf@microsoft.com<mailto:obaidf@microsoft.com>>
Cc: MSSolve Case Email <casemail@microsoft.com<mailto:casemail@microsoft.com>>; \
                cifs-protocol@lists.samba.org<mailto:cifs-protocol@lists.samba.org>
Subject: Re: [REG:118092719108783] Clarification on parsing printer driver inf \
failure - MSPAR RPC InstallPrinterDriverFromPackage

Thank you Obaid.

I uploaded the requested files, the trace includes the full test operation of the \
following programmatic steps:

  - establish smb connection
  - create directory inside print$ share
  - copy driver files and directories over SMB protocol
  - call RpcAsyncUploadPrinterDriverPackage method
  - call RpcAsyncInstallPrinterDriverFromPackage method

I hope it is not a problem that the first steps here are included in the trace.

-Justin

On Tue, Oct 2, 2018 at 4:14 PM Obaid Farooqi \
<obaidf@microsoft.com<mailto:obaidf@microsoft.com>> wrote: Hi Justin:
From the error that you sent me, I can tell that the installation fails because \
windows does not find the driver. I need some traces to see exactly where the error \
happening. I have uploaded a batch file called startTrace.bat to the following link:

File Transfer - Case \
118092719108783<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsuppo \
rt.microsoft.com%2Ffiles%3Fworkspace%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ3c2lkIj \
oiNGNiZDAwMjMtZWEzMi00YjllLWEzNzctZjY1ZDNjNjE3NjAzIiwic3IiOiIxMTgwOTI3MTkxMDg3ODMiLCJh \
cHBpZCI6ImU2ZWU0M2ViLTBmYmMtNDU0Ni1iYzUyLTRjMTYxZmNkZjRjNCIsInN2IjoidjEiLCJycyI6IkV4dG \
VybmFsIiwid3RpZCI6ImMxMDE0ODNlLWYyMGUtNDIyYS1hMzRkLTY3MzY5OTlmYzA2MiIsImlzcyI6Imh0dHBz \
Oi8vYXBpLmR0bW5lYnVsYS5taWNyb3NvZnQuY29tIiwiYXVkIjoiaHR0cDovL3NtYyIsImV4cCI6MTU0NjI4NT \
g3NSwibmJmIjoxNTM4NTA5ODc1fQ.Zq3KkNnGGxOe1mSRxlwphPMkgCoJuvco5-vvqcq1tDxv2QcAP5291UF3X \
mL4W1cj0c0jfodOAR5A1OECgStSYXJtpJvz6lry-cjJiQ9_luhnHXALyB7Fj_uHr9QM-Jk3GyvGVMYzny4fnRX \
OCjHBLyzZutyk6wTZiQqivGP9e9PxCG-ua6Jjxp4Qhh0KPVNUQbsXQFTsAWzlk2KXkXIs9PV5QRPP5e-LY_6kn \
y5tQBs4TUwN_v-NWnuNyDhTbzFNYG5bdql_DDuTca5cR7LpBPx175y6hp1hDSTp8lhdlT4NRiSV-OOMjsesw8R \
B5ro8_jvbUGU1mB4VesmEHE9q5A%26wid%3D4cbd0023-ea32-4b9e-a377-f65d3c617603&data=02%7C01% \
7Cobaidf%40microsoft.com%7C9b405f4550464dbe7e8a08d644074a92%7C72f988bf86f141af91ab2d7c \
d011db47%7C1%7C0%7C636771195461128413&sdata=SyV%2FPveVEbBCIDquZegwsonx4hlHZctSWaZpvHaGyDg%3D&reserved=0>
                
Username: 118092719108783_forJustin@dtmxfer.onmicrosoft.com<mailto:118092719108783_forJustin@dtmxfer.onmicrosoft.com>
                
Password: 9n;dAjY3

Please make sure to login with the given credentials. If you click on the link and \
are already logged in, please logout and login again using credentials provided \
above.

Please download the startTrace.bat file to your Windows print server and execute the \
following steps:

1. open an elevated command prompt
2. cd to directory where you downloaded startTrace.bat and execute the following \
command:  >startTrace.bat
3. When you see the command prompt again and no error is printed out, the tracing has \
started successfully. The message on screen will also inform you about the name and \
location of the trace file (among other things). 4. reproduce your issue.
5. after successful repro of the issue, execute the following command to stop tracing
            >netsh trace stop
6. there will be two files created in c:\ directory; printscan_print.etl and \
printscan_print.cab. Please upload these two files to the link above and let me know.


Regards,
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: Justin Stephenson <jstephen@redhat.com<mailto:jstephen@redhat.com>>
Sent: Friday, September 28, 2018 3:32 PM
To: Obaid Farooqi <obaidf@microsoft.com<mailto:obaidf@microsoft.com>>
Cc: MSSolve Case Email <casemail@microsoft.com<mailto:casemail@microsoft.com>>; \
                cifs-protocol@lists.samba.org<mailto:cifs-protocol@lists.samba.org>
Subject: Re: [REG:118092719108783] Clarification on parsing printer driver inf \
failure - MSPAR RPC InstallPrinterDriverFromPackage

Hello Obaid,

It should be the DCERPC calls starting in frame number 15525.

The inputs I am providing to the Install method are:

                pszServer                : '\\WIN-AD2016'
                pszInfPath               : \
'C:\Windows\System32\DriverStore\FileRepository\xeroxglobalprintdriver_pcl6.inf_amd64_37d0e6a31ac96d78\xeroxglobalprintdriver_pcl6.inf'
  pszDriverName            : 'testdriver'
                pszEnvironment           : 'Windows x64'
            dwFlags                  : 0x00000001 (1)
                   1: IPDFP_COPY_ALL_FILES


Kind regards,
Justin Stephenson
Red Hat

On Fri, Sep 28, 2018 at 4:01 PM Obaid Farooqi \
<obaidf@microsoft.com<mailto:obaidf@microsoft.com>> wrote: Hi Justin:
Can you please let me know the relevant frame numbers in your network trace?

Regards,
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: Justin Stephenson <jstephen@redhat.com<mailto:jstephen@redhat.com>>
Sent: Friday, September 28, 2018 7:52 AM
To: Obaid Farooqi <obaidf@microsoft.com<mailto:obaidf@microsoft.com>>
Cc: MSSolve Case Email <casemail@microsoft.com<mailto:casemail@microsoft.com>>; \
                cifs-protocol@lists.samba.org<mailto:cifs-protocol@lists.samba.org>
Subject: Re: [REG:118092719108783] Clarification on parsing printer driver inf \
failure - MSPAR RPC InstallPrinterDriverFromPackage

Hi Obaid,

From the Windows 10 Client I open the Print Management console, right-click Print \
Servers and add the Windows 2016 Server then right-click 'Drivers' and go through the \
Add Driver steps - selecting Have Disk and pointing to this INF file to install.

Thank you.

-Justin

On Thu, Sep 27, 2018 at 6:16 PM Obaid Farooqi \
<obaidf@microsoft.com<mailto:obaidf@microsoft.com>> wrote: 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?

Regards,
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@redhat.com<mailto:jstephen@redhat.com>>
Cc: MSSolve Case Email <casemail@microsoft.com<mailto:casemail@microsoft.com>>; \
                cifs-protocol@lists.samba.org<mailto:cifs-protocol@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.

Regards,
Edgar

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

Hello,

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:
  SetupParseInf
    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


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
h4
	{mso-style-priority:9;
	mso-style-link:"Heading 4 Char";
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.Heading4Char
	{mso-style-name:"Heading 4 Char";
	mso-style-priority:9;
	mso-style-link:"Heading 4";
	font-family:"Calibri Light",sans-serif;
	color:#2F5496;
	font-style:italic;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Justin:<o:p></o:p></p>
<p class="MsoNormal">I will set up a workspace for this new case and let you know \
ASAP.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Obaid Farooqi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Escalation Engineer | \
Microsoft<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">Exceeding your expectations is my highest priority.&nbsp; If \
you would like to provide feedback on your case you may contact my manager at \
ramagane at Microsoft dot com<o:p></o:p></span></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal"><b>From:</b> Justin \
Stephenson &lt;jstephen@redhat.com&gt; <br> <b>Sent:</b> Tuesday, November 6, 2018 \
10:45 AM<br> <b>To:</b> Obaid Farooqi &lt;obaidf@microsoft.com&gt;<br>
<b>Cc:</b> MSSolve Case Email &lt;casemail@microsoft.com&gt;; \
cifs-protocol@lists.samba.org<br> <b>Subject:</b> Re: [REG:118092719108783] \
Clarification on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <div>
<div>
<div>
<p class="MsoNormal">Hello Obaid,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I am seeing the same error when trying to install a different \
driver inf file, I am using the first left-hand-side value(HP Color LaserJet 3800) in \
the Model section as the pszDriverName input.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">The InstallPrinterDriverFromPackage() method returns HRESULT \
0x80070705 with the event log error &quot;Parsing inf for printer driver HP Color \
LaserJet 3800 failed, error code 0x705, HRESULT 0x80070705&quot;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">I tried to upload a trace of the failed reproducer but the <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsupport.microsof \
t.com&amp;data=02%7C01%7Cobaidf%40microsoft.com%7C9b405f4550464dbe7e8a08d644074a92%7C7 \
2f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636771195461118401&amp;sdata=RWRbN601sroHxi1qHoLNrgZ6HzdOlBZqIe3pGMNmXBs%3D&amp;reserved=0">
 support.microsoft.com</a> Secure file link gives me an error when trying to attach \
the file: &quot;printscan_print.etl - file upload failed&quot;.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Are you able to help look into this?<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">-Justin<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Oct 5, 2018 at 7:30 PM Obaid Farooqi &lt;<a \
href="mailto:obaidf@microsoft.com">obaidf@microsoft.com</a>&gt; wrote:<o:p></o:p></p> \
</div> <blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in \
0in 6.0pt;margin-left:4.8pt;margin-right:0in"> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi \
Justin:<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I debugged to see how it \
goes over my inf file.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">First it tries to compare \
with "DriverName" value, then "CompatName" value and then it starts in Model section \
and compares with left-hand-side value in Model section. &nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
 <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">For \
more info on inf files, please see informative references in MS-PAR \
document.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Please let me know if it \
does not answer your question.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Regards,</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Obaid Farooqi</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Escalation Engineer | Microsoft</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Exceeding your expectations is my highest priority.&nbsp; If \
you would like to provide feedback on your case you may contact my manager at \
ramagane at Microsoft  dot com</span><o:p></o:p></p>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> \
Justin Stephenson &lt;<a href="mailto:jstephen@redhat.com" \
target="_blank">jstephen@redhat.com</a>&gt; <br>
<b>Sent:</b> Wednesday, October 3, 2018 8:05 AM<br>
<b>To:</b> Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt;<br> <b>Cc:</b> MSSolve Case Email &lt;<a \
href="mailto:casemail@microsoft.com" target="_blank">casemail@microsoft.com</a>&gt;; \
<a href="mailto:cifs-protocol@lists.samba.org" \
target="_blank">cifs-protocol@lists.samba.org</a><br> <b>Subject:</b> Re: \
[REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello \
Obaid,<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">That \
fixed it! I suspected a bit ago the name might need to match, before opening the \
ticket I tried with the driver name &quot;XeroxGlobalPrintDriverV4_PCL6&quot; but it \
failed with the  same error 0x80070705.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Could \
you help clarify where Windows checks against to validate the driver name string, is \
it the first field value in the [Model] section of the driver inf file? That \
information  will help me improve my code ensuring the driver name matches correctly \
before attempting the install.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">It \
would be great to add some mention of this driver name validation in the MS-PAR \
technical document, currently the ERROR_UNKNOWN_PRINTER_DRIVER information in the \
spec only discusses  problems with derived print drivers.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks much for your help \
Obaid!<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Kind \
regards,<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Justin \
Stephenson<o:p></o:p></p> </div>
</div>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On \
Tue, Oct 2, 2018 at 6:33 PM Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt; wrote:<o:p></o:p></p> </div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi \
Justin:<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I think I know why it is \
failing. The pszDriverName in your RpcAsyncInstallPrinterDriverFromPackage is equal \
to testdriver. None of the drivers in your package is named testdeiver.  Try the \
names from inf you are using like e.g. <o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">"Xerox Global Print Driver \
V4 PCL6"<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Regards,</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Obaid Farooqi</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Escalation Engineer | Microsoft</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Exceeding your expectations is my highest priority.&nbsp; If \
you would like to provide feedback on your case you may contact my manager at \
ramagane at Microsoft  dot com</span><o:p></o:p></p>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> \
Justin Stephenson &lt;<a href="mailto:jstephen@redhat.com" \
target="_blank">jstephen@redhat.com</a>&gt; <br>
<b>Sent:</b> Tuesday, October 2, 2018 3:49 PM<br>
<b>To:</b> Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt;<br> <b>Cc:</b> MSSolve Case Email &lt;<a \
href="mailto:casemail@microsoft.com" target="_blank">casemail@microsoft.com</a>&gt;; \
<a href="mailto:cifs-protocol@lists.samba.org" \
target="_blank">cifs-protocol@lists.samba.org</a><br> <b>Subject:</b> Re: \
[REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank \
you Obaid.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I \
uploaded the requested files, the trace includes the full test operation of the \
following programmatic steps:<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; - establish smb \
connection<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; - create directory \
inside print$ share<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; - copy driver files \
and directories over SMB protocol<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; - call \
RpcAsyncUploadPrinterDriverPackage method<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; - call \
RpcAsyncInstallPrinterDriverFromPackage method<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I \
hope it is not a problem that the first steps here are included in the \
trace.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-Justin<o:p></o:p></p> \
</div> </div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On \
Tue, Oct 2, 2018 at 4:14 PM Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt; wrote:<o:p></o:p></p> </div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi \
Justin:<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">From the error that you \
sent me, I can tell that the installation fails because windows does not find the \
driver. I need some traces to see exactly where the error happening. I  have uploaded \
a batch file called startTrace.bat to the following link:<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
 <h4 style="margin-bottom:11.25pt"><span style="color:#333333"><a \
href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.microso \
ft.com%2Ffiles%3Fworkspace%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ3c2lkIjoiNGNiZDAw \
MjMtZWEzMi00YjllLWEzNzctZjY1ZDNjNjE3NjAzIiwic3IiOiIxMTgwOTI3MTkxMDg3ODMiLCJhcHBpZCI6Im \
U2ZWU0M2ViLTBmYmMtNDU0Ni1iYzUyLTRjMTYxZmNkZjRjNCIsInN2IjoidjEiLCJycyI6IkV4dGVybmFsIiwi \
d3RpZCI6ImMxMDE0ODNlLWYyMGUtNDIyYS1hMzRkLTY3MzY5OTlmYzA2MiIsImlzcyI6Imh0dHBzOi8vYXBpLm \
R0bW5lYnVsYS5taWNyb3NvZnQuY29tIiwiYXVkIjoiaHR0cDovL3NtYyIsImV4cCI6MTU0NjI4NTg3NSwibmJm \
IjoxNTM4NTA5ODc1fQ.Zq3KkNnGGxOe1mSRxlwphPMkgCoJuvco5-vvqcq1tDxv2QcAP5291UF3XmL4W1cj0c0 \
jfodOAR5A1OECgStSYXJtpJvz6lry-cjJiQ9_luhnHXALyB7Fj_uHr9QM-Jk3GyvGVMYzny4fnRXOCjHBLyzZu \
tyk6wTZiQqivGP9e9PxCG-ua6Jjxp4Qhh0KPVNUQbsXQFTsAWzlk2KXkXIs9PV5QRPP5e-LY_6kny5tQBs4TUw \
N_v-NWnuNyDhTbzFNYG5bdql_DDuTca5cR7LpBPx175y6hp1hDSTp8lhdlT4NRiSV-OOMjsesw8RB5ro8_jvbU \
GU1mB4VesmEHE9q5A%26wid%3D4cbd0023-ea32-4b9e-a377-f65d3c617603&amp;data=02%7C01%7Cobai \
df%40microsoft.com%7C9b405f4550464dbe7e8a08d644074a92%7C72f988bf86f141af91ab2d7cd011db \
47%7C1%7C0%7C636771195461128413&amp;sdata=SyV%2FPveVEbBCIDquZegwsonx4hlHZctSWaZpvHaGyDg%3D&amp;reserved=0" \
target="_blank">File  Transfer - Case 118092719108783</a></span><o:p></o:p></h4>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">Username: <a \
href="mailto:118092719108783_forJustin@dtmxfer.onmicrosoft.com" target="_blank"> \
118092719108783_forJustin@dtmxfer.onmicrosoft.com</a> </span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">Password: 9n;dAjY3 </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">Please make sure to login with the given \
credentials. If you click on the link and are already logged  in, please logout and \
login again using credentials provided above.</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">Please download the startTrace.bat file to your \
Windows print server and execute the following steps:</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:#333333">1. \
open an elevated command prompt</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:#333333">2. \
cd to directory where you downloaded startTrace.bat and execute the following \
command:</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&gt;startTrace.bat</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:#333333">3. \
When you see the command prompt again and no error is printed out, the tracing has \
started successfully.  The message on screen will also inform you about the name and \
location of the trace file (among other things). </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:#333333">4. \
reproduce your issue.</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:#333333">5. \
after successful repro of the issue, execute the following command to stop \
tracing</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe \
UI&quot;,sans-serif;color:#333333">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&gt;netsh trace stop</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:#333333">6. \
there will be two files created in c:\ directory; printscan_print.etl and \
printscan_print.cab.  Please upload these two files to the link above and let me \
know.</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
 <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Regards,</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Obaid Farooqi</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Escalation Engineer | Microsoft</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Exceeding your expectations is my highest priority.&nbsp; If \
you would like to provide feedback on your case you may contact my manager at \
ramagane at Microsoft  dot com</span><o:p></o:p></p>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> \
Justin Stephenson &lt;<a href="mailto:jstephen@redhat.com" \
target="_blank">jstephen@redhat.com</a>&gt; <br>
<b>Sent:</b> Friday, September 28, 2018 3:32 PM<br>
<b>To:</b> Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt;<br> <b>Cc:</b> MSSolve Case Email &lt;<a \
href="mailto:casemail@microsoft.com" target="_blank">casemail@microsoft.com</a>&gt;; \
<a href="mailto:cifs-protocol@lists.samba.org" \
target="_blank">cifs-protocol@lists.samba.org</a><br> <b>Subject:</b> Re: \
[REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello \
Obaid,&nbsp;<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">It \
should be the DCERPC calls starting in frame number 15525.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The \
inputs I am providing to the Install method are:<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
pszServer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
: '\\WIN-AD2016'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
pszInfPath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
: 'C:\Windows\System32\DriverStore\FileRepository\xeroxglobalprintdriver_pcl6.inf_amd64_37d0e6a31ac96d78\xeroxglobalprintdriver_pcl6.inf'<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
pszDriverName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : \
'testdriver'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
pszEnvironment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 'Windows \
x64'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
dwFlags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
: 0x00000001 (1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
1: IPDFP_COPY_ALL_FILES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<o:p></o:p></p> </div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Kind \
regards,<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Justin \
Stephenson<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Red \
Hat<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On \
Fri, Sep 28, 2018 at 4:01 PM Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt; wrote:<o:p></o:p></p> </div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi \
Justin:<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Can you please let me know \
the relevant frame numbers in your network trace?<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Regards,</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Obaid Farooqi</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Escalation Engineer | Microsoft</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Exceeding your expectations is my highest priority.&nbsp; If \
you would like to provide feedback on your case you may contact my manager at \
ramagane at Microsoft  dot com</span><o:p></o:p></p>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> \
Justin Stephenson &lt;<a href="mailto:jstephen@redhat.com" \
target="_blank">jstephen@redhat.com</a>&gt; <br>
<b>Sent:</b> Friday, September 28, 2018 7:52 AM<br>
<b>To:</b> Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt;<br> <b>Cc:</b> MSSolve Case Email &lt;<a \
href="mailto:casemail@microsoft.com" target="_blank">casemail@microsoft.com</a>&gt;; \
<a href="mailto:cifs-protocol@lists.samba.org" \
target="_blank">cifs-protocol@lists.samba.org</a><br> <b>Subject:</b> Re: \
[REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi \
Obaid,<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">From \
the Windows 10 Client I open the Print Management console, right-click Print Servers \
and add the Windows 2016 Server then right-click 'Drivers' and go through the Add \
Driver  steps - selecting Have Disk and pointing to this INF file to \
install.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank \
you.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-Justin<o:p></o:p></p> \
</div> </div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On \
Thu, Sep 27, 2018 at 6:16 PM Obaid Farooqi &lt;<a href="mailto:obaidf@microsoft.com" \
target="_blank">obaidf@microsoft.com</a>&gt; wrote:<o:p></o:p></p> </div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"> <div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi \
Justin:<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I'll help you with this \
issue and will be in touch as soon as I have an answer. <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Can \
you please send me the steps you performed to install this driver from a Windows 10 \
machine to a remote print server?<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Regards,</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Obaid Farooqi</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Escalation Engineer | Microsoft</span><o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">Exceeding your expectations is my highest priority.&nbsp; If \
you would like to provide feedback on your case you may contact my manager at \
ramagane at Microsoft  dot com</span><o:p></o:p></p>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in \
0in"> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> Edgar \
Olougouna <br>
<b>Sent:</b> Thursday, September 27, 2018 1:53 PM<br>
<b>To:</b> Justin Stephenson &lt;<a href="mailto:jstephen@redhat.com" \
target="_blank">jstephen@redhat.com</a>&gt;<br> <b>Cc:</b> MSSolve Case Email &lt;<a \
href="mailto:casemail@microsoft.com" target="_blank">casemail@microsoft.com</a>&gt;; \
<a href="mailto:cifs-protocol@lists.samba.org" \
target="_blank">cifs-protocol@lists.samba.org</a><br> <b>Subject:</b> \
[REG:118092719108783] Clarification on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> </div>
</div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">[&#43; \
case number, cc casemail, bcc dochelp]<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello Justin, The case \
number 118092719108783 has been created for this inquiry. One of our engineers will \
follow-up soon.<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Regards,<o:p></o:p></p>
 <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Edgar<o:p></o:p></p> <p \
class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
 <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> Justin \
Stephenson &lt;<a href="mailto:jstephen@redhat.com" \
target="_blank">jstephen@redhat.com</a>&gt; <br>
<b>Sent:</b> Thursday, September 27, 2018 1:17 PM<br>
<b>To:</b> Interoperability Documentation Help &lt;<a \
href="mailto:dochelp@microsoft.com" target="_blank">dochelp@microsoft.com</a>&gt;<br> \
<b>Cc:</b> <a href="mailto:cifs-protocol@lists.samba.org" \
target="_blank">cifs-protocol@lists.samba.org</a><br> <b>Subject:</b> Clarification \
on parsing printer driver inf failure - MSPAR RPC \
InstallPrinterDriverFromPackage<o:p></o:p></p> <p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
<div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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).<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Upon \
the failure, event ID Number 213 is logged in the PrintService Operational event \
viewer with the following message:<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i>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.</i><o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The \
UserData details show:<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp; \
SetupParseInf<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; Label: \
ParseInfAndCommitFileQueue<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
Message: PreSelectDriverEx failed<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
InfPath: C:\Windows\System32\DriverStore\FileRepository\xeroxglobalprintdriver_pcl6.inf_amd64_37d0e6a31ac96d78\xerosglobalprintdriver_pcl6.inf<o:p></o:p></p>
 </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
DriverName: testdriver<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
InstallSection: -<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
ProcessorArchitecture: Windows x64<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
LastError: 0x705<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp; \
HResult: 0x80070705<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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).<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Any \
other ideas what is happening here would be appreciated.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank \
you.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal" \
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Justin \
Stephenson<o:p></o:p></p> </div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Red \
Hat<o:p></o:p></p> </div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>



_______________________________________________
cifs-protocol mailing list
cifs-protocol@lists.samba.org
https://lists.samba.org/mailman/listinfo/cifs-protocol

--===============1404090007587210091==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic