Name: ToPo (by topo) Date: November 19, 2007 at 15:54:52 Pacific Subject: Script to remove TCP/IP Printers OS: Win XP MCE CPU/Ram: 2.0GHz / 1 GB DDR Model/Manufacturer: HP Pavilion
Comment:
Hello,
I am looking to create a batch file to remove all TCP/IP printers, but keep all local printers. Currently I tried using windows prnmngr.vbs but it either deletes all printers including Adobe PDF writer or I can specify which printers to delete within the cmd. I basically need to click on a button and "bye bye" IP printers. Any help would be very much appreciated.
::==rmNetPrinters.bat @echo off wmic printer where "Local='FALSE'" delete ::==
I don't have Adobe PDF Writer on my machine so I don't know if this will delete that or not. I would assume not because it should be listed as a local printer, but again, I'm not sure.
I am using this command in a batch file called within a login script. If you are using it within a script you must put two %% as the command line will read one % as a special character. Two %% will read it as a single %. My command looks like this...
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE