Deleting Printers using printui.dll commands

By 1cainr ·
At the moment i use login scripts (batch files) to add printers to local machines from the server. e.g.
Rundll32 printui.dll,PrintUIEntry /ga /n\\server\printer-64

However, i want to be able to delete all current printers on the local machine before adding the printers again. Does anyone know of a command to wipe all printers rather than individually?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Here you go

by IC-IT In reply to Deleting Printers using p ...

Copied from here;

Note change this line to reflect your actual print server's name;
set pserver=CLTLBXPRN

@echo off


set pserver=CLTLBXPRN

echo Remove All Network Printers.......

con2prt /f

echo Show All Available Printers From %pserver%.......

net view %pserver%

set /p pname= Enter Printer Name:

rundll32 printui.dll,PrintUIEntry /in /n\\%pserver%\%pname% /q

set pserver=

set pname=


Collapse -

Quietly installing printers using batch file.

by 1cainr In reply to Here you go

I have the command:

Rundll32 printui.dll,PrintUIEntry /in /q /n\\server\printer01

But for some reason it doesnt quietly install, anyone have any ideas?

Thank you


Related Discussions

Related Forums