Question

Locked

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.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Here you go

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

Copied from here;

http://www.computerperformance.co.uk/ezine/ezine16a.htm

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

@echo off

path=c:\util;%path%

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=

exit

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

Richard

Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums