How to Remove Printers From the Command Line

For most users, adding printers, removing printers, and changing printer properties using Windows' graphical interface is sufficient. However, some instances require the greater degree of control and flexibility provided by the command line. This is most notably the case in larger organizations, where a system administrator seeks to remove a printer from hundreds or thousands of machines, but it does not have the time or resources to do so manually on each computer. Running a single command can solve this problem.

...
Remove printers from the command line with a single command.

Step

Open a command prompt. Click the Windows Start button and select \"Run.\" Enter \"cmd\" (without quotation marks) and click \"OK.\"

Step

Enter the following command in the command prompt:

Step

rundll32 printui.dll,PrintUIEntry /dl /n \"printer_name\" /c\computer_name

Step

Change the \"printer name\" variable to the exact name of the printer you want to remove (e.g. \"HP Color LaserJet 2600n\"). Also change the \"computer_name\" variable to the name of the computer or server from which the named printer should be removed.

Step

Press the \"Enter\" key to run the command. The printer is generally removed from the target computer within seconds.