PC Review


Reply
Thread Tools Rate Thread

Batch File Fun!- Printers...

 
 
camron
Guest
Posts: n/a
 
      29th Sep 2004
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
 
Reply With Quote
 
 
 
 
Olaf Engelke [MVP]
Guest
Posts: n/a
 
      29th Sep 2004
Hi,
camron wrote:
> 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.
 
Reply With Quote
 
Jerold Schulman
Guest
Posts: n/a
 
      29th Sep 2004
On Tue, 28 Sep 2004 17:28:52 -0700, "camron" <(E-Mail Removed)>
wrote:

>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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using a batch file to install network printers =?Utf-8?B?RGFu?= Microsoft Windows 2000 0 22nd Jun 2005 06:40 PM
Batch file to add network printers =?Utf-8?B?TGVl?= Microsoft Windows 2000 CMD Promt 1 22nd Apr 2004 08:14 AM
Batch file setup for network printers Mike_Bee Microsoft Windows 2000 CMD Promt 9 24th Mar 2004 06:54 PM
Installing Printers via batch file (on floppy?) David Owens Microsoft Windows 2000 Printing 1 3rd Sep 2003 11:14 AM
Installing Printers via batch file (on floppy?) David Snell Microsoft Windows 2000 Printing 0 2nd Sep 2003 05:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 AM.