Some of you may have experienced difficulty updating drivers on network printers.
Once the server drivers are updated the workstations may experience inability to print and/or error messages when trying to access printer property dialogs.
The following batch script example can be integrated into a logon script or run manually to clean up old drivers and install new ones from the server.
rem First we need to stop the print spooler to make sure there's no files in use
rem If we don't do this, we won't be able to delete them all
net stop spooler
rem Now we need to restart the print spooler because printui.dll uses it
net start spooler
rem Now delete the network printers
rundll32 printui.dll,PrintUIEntry /q /dn /n "\\PRINTSERVER\KM6030"
rundll32 printui.dll,PrintUIEntry /q /dn /n "\\PRINTSERVER\KM-4030KX (Member Services)"
rundll32 printui.dll,PrintUIEntry /q /dn /n "\\PRINTSERVER\KM9500 Cards"
rundll32 printui.dll,PrintUIEntry /q /dn /n "\\PRINTSERVER\KM9500 letterhead"
rundll32 printui.dll,PrintUIEntry /q /dn /n "\\PRINTSERVER\KM9500 Plain"
rundll32 printui.dll,PrintUIEntry /q /dn /n "\\PRINTSERVER\KM3830n plain"
rem Delete the drivers
rundll32 printui.dll,PrintUIEntry /q /dd /m "Kyocera KM-6030 KX"
rundll32 printui.dll,PrintUIEntry /q /dd /m "Kyocera Mita FS-9500DN KX"
rundll32 printui.dll,PrintUIEntry /q /dd /m "Kyocera Mita KM-4030 KX"
rundll32 printui.dll,PrintUIEntry /q /dd /m "Kyocera Mita FS-3800 KX"
rem Add printers back in
rundll32 printui.dll,PrintUIEntry /q /in /n "\\PRINTSERVER\KM6030"
rundll32 printui.dll,PrintUIEntry /q /in /n "\\PRINTSERVER\KM-4030KX (Member Services)"
Ask not what you can give your country, but what your country will allow you to keep to feed you family.