I'm trying to do uninstall a printer driver using the command line in Windows XP. I've figured out that I should use this command:
rundll32 printui.dll,PrintUIEntry /dd /m "HENGSTLER C-56 THERMAL PRINTER" /h "Intel" /v "Windows 2000 or XP"
(Funny thing here, if i type /v "Windows XP" as it says in the help for printUIEntry it doesn't work at all.)
When executing this command I get an error message saying:
Operation could not be completed. The specified printer driver is currently in use.
When I try to uninstall the printer "manually" with either the uninstall tool or just deleting it in "Printers and Faxes" in the Control panel it works fine. Does anyone know of a way to force the deletion or maybe stop the drivers first? (It might be worth noting that the printer is not in use.)
