howtothings.co.uk
Renaming and Deleting printers from the command line - Printable Version

+- howtothings.co.uk (https://www.howtothings.co.uk)
+-- Forum: Computing (https://www.howtothings.co.uk/forumdisplay.php?fid=4)
+--- Forum: Operating System and Software Support (https://www.howtothings.co.uk/forumdisplay.php?fid=17)
+--- Thread: Renaming and Deleting printers from the command line (/showthread.php?tid=1240)



Renaming and Deleting printers from the command line - Mark - 15-05-2012


Good for when the clients account is locked down but you have access to an elevated terminal.

Deleting a printer from the command line
RUNDLL32 PRINTUI.DLL,PrintUIEntry /dl /n "PRINTERNAME"

Renaming a printer from the command line
cscript PRNCNFG.vbs -x -p "PRINTERNAME1" -z "PRINTERNAME2"