![]() |
Go ![]() | New ![]() | Find ![]() | Notify ![]() | Tools ![]() | Reply ![]() | |
| Imaging god |
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)" Relax? When?! | ||
|
| Imaging god |
You may have noticed - this script doesn't add in as many printers as it has removed. The location I wrote this script for doesn't need all users to print to all printers. The script only adds back those that all users use. The other printers are added in through scripts for their appropriate OU's. Relax? When?! | |||
|
| Powered by Social Strata |
| Please Wait. Your request is being processed... |
|

