Printer Cleanup.exe 2642149382
PrinterCleanup.exe is a useful tool developed by Tricerat to help with printer related issues. The scenarios described here should be thoroughly understood before implementation or use. Contact Customer Support if you have questions.
Use caution when using PrinterCleanup!
Example 1: Using PrinterCleanup to control printer entries used by some applications
Problem: Some applications read registry entries to display the available printers.
Background: There are 2 keys, HKCU\Software\Microsoft\Windows NT\CurrentVersion\Devices and
HKCU\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts, that contain the names of
printers. These keys are maintained by Microsoft, values are added when a printer is added and
removed when the printer is deleted. Windows does a poor job of maintaining these keys; usually
adding but not removing the values when a printer is deleted.
It's usually not a problem but some poorly designed applications read the values in these keys and use
them as a valid printer list. A properly designed application uses the standard print dialog to display
printer choices for the user (Notepad and Word for example).
Solution: PrinterCleanup.exe can help maintain these keys by removing invalid entries. Several customers are using this method and they love it.
Implementation: Setup a Run value to do the work when the User logs in:
To show the status of orphaned printers without doing anything, use:
"C:\Program Files\Tricerat\ScrewDrivers\Endpoint\PrinterCleanup.exe" -removeOrphaned -validate
This will produce a log in the C:\ProgramData\Tricerat\Logs folder that describes what actions it may take. This is safe to run anytime. If this step finds any issues, you can remove the -validate argument to perform the removal:
"C:\Program Files\Tricerat\ScrewDrivers\Endpoint\PrinterCleanup.exe" -removeOrphaned
Please gather the generated logs and submit to Support for review.
Note: If executing from a PowerShell Admin prompt, use this syntax:
& "C:\Program Files\Tricerat\ScrewDrivers\Endpoint\PrinterCleanup.exe" -removeOrphaned