question

LukeTomczyk-7310 avatar image
0 Votes"
LukeTomczyk-7310 asked EduardoHafner-2330 commented

Microsoft Print to PDF not working after Windows update to Windows Server 2019

We have been having an issue for the past 2 months where on all 4 of our Windows Server 2019 RDSH, the Microsoft Print to PDF feature stopped working along with other built in printers. At first we could not locate the issue, but some time later, after uninstalling the Windows updates, the feature started to work again.

Some things we have done...
-Uninstalled the printer and tried to reinstall. We are always presented with "Unable to install, Element not found".
-When clicking on the properties of the PDF printer, it mentions that the driver is not installed (although we believe it is). When going through the wizard to install the driver, we get the same error listed above.
-Performed a full reset and fresh windows install on the server. This works, until the Windows updates are installed, which breaks the printer again.


It almost seems like whatever is in this update is breaking any/all of the Type 4 printer drivers.
Does anyone know a fix for this issue? We would like to have the updates installed to stay up to date and safe, but the PDF printer is a must have.
Thanks!

windows-server-2019windows-server-print
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Same issue here. I can't find a fix. Tried uninstalling all recent updates, but that didn't help. I couldn't uninstall some of the security updates. I deleted the printers (XPS, PDF, OneNote) thinking that deleting all of them and starting from scratch with Type 4 drivers might help, but it didn't. Now I can't even install them. If I select Use the driver that is currently installed, I get "Unable to install printer. The handle is invalid." If I select Replace the current driver, I get "Printer driver was not installed. Element not found."

0 Votes 0 ·

We are using Windows 2016 Server standard on two different domains. We have two 2016 server standard RDS servers where the Microsoft Print to PDF stopped working on 7/15/21 when the July patches were installed. The same behavior is happening with those servers as mentioned by others here. The XPS writer and Send to OneNote printers also stopped working. We tried everything that has been mentioned here to try and resolve the issue but we have been unsuccessful.

If anyone has a potential fix, I am hoping they will share.

0 Votes 0 ·

Just checking in to see if anyone has made any progress on this issue. This happened to our RDS hosts last April 2020, so we rebuilt the RDS environment with new hosts (fully patched), which worked fine until July 2021, when the EXACT same thing started happening. The impacted servers cannot install any Type4 drivers and display Element not Found. Rolling back the updates resolves the issue, but given the recent print spooler exploits, this is not an option. It would appear that for whatever reason, at some point installing the latest updates is causing the print to pdf (or some other built-in driver) to become corrupt.

Any help would be greatly appreciated.

0 Votes 0 ·

I think this is a different problem. This is caused by the printnightmare fix that Microsoft deployed. The patch now requires that all users have Admin rights to use Point and Click or GPO deployed printers. There are GPO entries that can be set to override the new "fix" but the turn the vulnerability back on. I worked aroung this by only allowing driver instalation from within my forest.

Users can only point and print to machines in their forest: Enabled

And the following registry update:
RestrictDriverInstallationToAdministrators (Order: 1)hide
Generalhide
Action Update
PropertiesHive HKEY_LOCAL_MACHINE
Key path SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint
Value name RestrictDriverInstallationToAdministrators
Value type REG_DWORD
Value data 0x0 (0)

0 Votes 0 ·

This has nothing to do with the recent security updates unfortunately.

0 Votes 0 ·

I need help, I'm having the same error, I've tried all the options. My Windows Server 2019 I searched all the forums and didn't find any viable answer.

0 Votes 0 ·
JennyYan-MSFT avatar image
0 Votes"
JennyYan-MSFT answered LukeTomczyk-7310 commented

Hi,
1.If the print driver does install on the server, use the print backup utility c:\windows\system32\spool\tools\printbrm.exe to backup the driver and then restore the driver to the machine with the issue adding the driver to the driverstore.
printbrm -b -f backup.printerexport
printbrm -r -s printserver -f backup.printerexport

https://social.technet.microsoft.com/Forums/windowsserver/en-US/402a8e6d-a873-4cf7-8625-a8c50ef6ba47/printer-driver-was-not-installed-element-not-found?forum=winserverprint

2.There is a similar thread in QA forum that the user finally choose higher version of another PDF printer as workaround.
https://docs.microsoft.com/en-us/answers/questions/138777/windows-updates-kill-print-to-pdf-function-kb45747.html

3.What is the patched KB that has broken the PDF printer and you could post the details in user voice forum for the product team to check further.
https://windowsserver.uservoice.com/forums/295047-general-feedback


Hope this helps and please help to accept as Answer if the response is useful.

Thanks,
Jenny

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Jenny,

Unfortunately, option 1 does not fix the issue when the Windows updates are still installed.

As far as option 2 is concerned, we do not have a second installed PDF printer. We strictly use the Microsoft built in "Print to PDF" function.

I will be testing which exact update is breaking the drivers and then relay that message to the user voice forum.


Thanks,
Luke

0 Votes 0 ·

Hi Luke,
Thanks for the update. It is appreciated for you to update the KB details here and we would like to test in VMs and reproduce your issue if possible.

Best Regards,
Jenny

0 Votes 0 ·

Hi Jenny,

Sorry for the delayed response. I was waiting for the January 2021 patches to see if the issue would resolve itself. Unfortunately, it did not, but we have captured the patch that seems to be causing the issue.

Per testing, once we uninstall KB4598230, the print to PDF (along with all other type 4 printers), begin to work again. Any ideas on why this patch may be interfering with type 4 drivers/printers?

Thanks!
Luke

0 Votes 0 ·
acira-8787 avatar image
0 Votes"
acira-8787 answered LukeTomczyk-7310 commented

I am having the same issue on Server 2016 RDSH
https://docs.microsoft.com/en-us/answers/questions/166106/microsoft-print-to-pdf-stops-working-on-2016-rdsh.html

Any cumulative update since breaks it for me.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We're seeing the same thing here. Hoping that there is some sort of workaround identified or the patch itself modified. Let me know if you here anything!

0 Votes 0 ·

I think it tries to use GPU resources to raster, I wonder if it has something to do with the RemoteFX vGPU vulnerability mitigation.

0 Votes 0 ·

That's an idea I hadn't even thought of. That could have some potential.

0 Votes 0 ·
EVOKMichaelErni-5457 avatar image
1 Vote"
EVOKMichaelErni-5457 answered LukeTomczyk-7310 commented

Hi,

Exactly the same problem here with a RDS Sever (2019).

Any news or updates about this case ?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are currently working with MS support on the case now. Hopefully some resolution will come of it. They we able to remote to our environment and see the issue first had, where after updating, the type 4 printers fail. Any tricks they attempted did not work, so hoping that development can come up with some remediation.

0 Votes 0 ·
AlexCarlock-2314 avatar image
1 Vote"
AlexCarlock-2314 answered

We never found a solution. Had to install a 3rd party PDF Printer.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Steven-9558 avatar image
0 Votes"
Steven-9558 answered

We had removed the updates from the server in November to regain functionality. About 2 weeks ago an update installed to our windows 10 workstations that broke this again. After testing, I found that Remote pdf printing now works if both the servers and workstations are updated. NOTE: our configuration is a little different. We are running windows server 2012 R2 (Now with all the latest updates) and Windows 10 1909 or windows 10 20h2 with all the latest updates.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mrbenjamine20-2367 avatar image
1 Vote"
mrbenjamine20-2367 answered PavlinIvanov-0161 published

Quick update- making a bit of progress on this (I think).

One thing I noticed was that the ntprint.inf file was referencing ntprint.inf_x86... for the active driver reference on the problematic machine, ntprint.inf_x64... on a working machine

I did the following and so far printing is back to normal for Type-4 drivers-

1- ran "pnputil /enum-drivers" from a command prompt
2- used psexec to elevate and run regedit as system
3- investigated the - HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\ntprint.inf
4- updated the (Default) value to include - ntprint.inf_x86_6fbb4b09e9354bf2 and ntprint.inf_amd64_6fbb4b09e9354bf2
5- updated the Active value to - ntprint.inf_amd64_6fbb4b09e9354bf2

Note- the exact values of ntprint.inf_x86 and _64 might be specific to build or updates installed, I'm not sure that they are universal to 2016. I used the values that existed in the DriverStore - C:\Windows\System32\DriverStore\FileRepository on my servers.

Not sure if this fix will do the trick long term, but so far after scrubbing out old printers, drivers, and pretty much cleaning out all registry / driver on the server its the only thing that has looked promising. Hopefully this will help point someone else in the right direction.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Unreal, I have been messing with this all day and this worked. Thank you very much.

0 Votes 0 ·

All the steps were as described, but it is still not working for me :(

0 Votes 0 ·