Batch File Fun!- Printers...

C

camron

I am using the following Batch Script to install printers
on all of the computers i administer. Its easy this way.

start script:: rundll32
printui.dll,PrintUIEntry /in /n "\\131.47.183.130\Big
Color 106" ::end script

I want a script that will delete all of the printers
before this script loads. so when they log on, any
printers that are there will delete, and i can add the
ones they need.

this is because printers' ip's and name's change, plus
they add printers they dont need. so its easy to manage
from one script.

can anyone give me a syntax that will delete all the
printers on a given users profile that can be put in a
batch script?


thanks

camron
 
O

Olaf Engelke [MVP]

Hi,
camron said:
I am using the following Batch Script to install printers
on all of the computers i administer. Its easy this way.

start script:: rundll32
printui.dll,PrintUIEntry /in /n "\\131.47.183.130\Big
Color 106" ::end script

I want a script that will delete all of the printers
before this script loads. so when they log on, any
printers that are there will delete, and i can add the
ones they need.
depends what you want to delete - the printer connections or the drivers.
Check the parameters by
rundll32 printui.dll,PrintUIEntry /?
Here you should find all information you need.
Best greetings from Germany
Olaf.
 
J

Jerold Schulman

I am using the following Batch Script to install printers
on all of the computers i administer. Its easy this way.

start script:: rundll32
printui.dll,PrintUIEntry /in /n "\\131.47.183.130\Big
Color 106" ::end script

I want a script that will delete all of the printers
before this script loads. so when they log on, any
printers that are there will delete, and i can add the
ones they need.

this is because printers' ip's and name's change, plus
they add printers they dont need. so its easy to manage
from one script.

can anyone give me a syntax that will delete all the
printers on a given users profile that can be put in a
batch script?


thanks

camron

See tip 2014 in the 'Tips & Tricks' at http://www.jsiinc.com

Also, you may want to reset their default printer after you install them.
See tip 672 for the registry entry (also 7281).



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top