Score:0

Roll back HP Universal Print Driver

jp flag

I recently installed the latest PostScript HP Universal Print Driver on my Windows print server, but it turned out that the driver was buggy. I reverted the server virtual machine to a snapshot taken before the upgrade, so the server is fine. Some Windows client PCs connected to the server during the brief period that the bad driver was installed, and they downloaded and installed the buggy version. (We have Group Policy settings in place to override the restrictions Microsoft implemented in response to PrintNightmare, which is why this works. There is an allow-list of print servers from which clients are permitted to download and install printer drivers.)

We use the driver without the version in the name ("HP Universal Printing PS"), and so now the clients check in with the server, see that they have the identically-named driver with a newer version number, and do not download the older, working version from the server. Our efforts to manually delete the drivers from the client PCs have been unsuccessful. We've tried deleting all HP printers from the PC and then deleting the driver from the PC, but every time, it says that the driver is still in use. We've tried it (1) in the UI, (2) in PowerShell like this:

#Remove printers using the HP universal print driver.
Get-Printer | Where-Object -Property DriverName -EQ -Value 'HP Universal Printing PS' | Remove-Printer

#Remove the HP universal print driver
Remove-PrinterDriver -Name "HP Universal Printing PS" -PrinterEnvironment 'Windows x64' -RemoveFromDriverStore

...and (3) at the Command Prompt like this:

pnputil.exe /enum-drivers
rem Look through the output for the bad driver, and note its INF file for the next line.
pnputil.exe /delete-driver oemnnn.inf /uninstall /force /reboot

A little more investigation implies that perhaps if every user with a user profile on the PC signed in and deleted any HP printers using the driver, then Windows might no longer insist that the driver is in use. This would be extremely difficult to accomplish though, and we don't necessarily want to just delete user profiles.

A complicating factor is that we deploy these printers with Group Policy, so any time we restart the spooler service or the computer, all the printers are regenerated by Group Policy. I recognize that we may need to disable this behavior to fix this.

Is there any way to get Windows client PCs to roll back this driver to a previous version, or to delete it altogether? I'm looking for a /really-force-delete-regardless-of-consequences switch or its equivalent.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.