We began to see the autocreation of printers (or redirected printers) starting to fail for users when logging in to a customer's Terminal Servers lately. On the same server we also start seeing the printers that were autocreated not being deleted (orphaned session printers) when users logged off a Terminal Server. The cause turned out to be two outdated DLLs installed on the Terminal Servers:
Hpmini.dll - This issue occurs with HP model driver versions 60.x.x.x and 4.x.x.x. containing hpbmini.dll version 22.214.171.124 or older. Version 126.96.36.199 and newer has the fix. The memory leaks and memory corruption possible with the 188.8.131.52 (or older) dll will not cause a spooler crash, but can degrade performance of the server. Version 4.x.x.x print drivers have an issue unloading hpbmini.dll which will likely cause a spooler crash when the server has a heavy load of connected users.hpcdmc32.dll - This issue occurs with 60.x.x.x and 4.x.x.x HP print drivers containing hpcdmc32.dll version 184.108.40.206 or older. Version 220.127.116.11 and newer has the fix. The most recent version of hpcdmc32.dll is 18.104.22.168. The memory leaks possible with the 22.214.171.124 (or older) dll will not cause a spooler crash but may cause performance degradation.
Here is what turned out to be the solution for us: [more]
Upgrade to latest driver available for printer model(s) causing issue – verify that the two DLLs above are updated during this process. If the files are in use while the driver is updated, they will not be replaced.
Manually replace the two DLLs above with updated versions.
Install and use HP Universal print driver