XP Pro ships with several scripts that interface with WMI to enumerate , add
and delete printers.
in system32
prnmngr.vbs to list, add, delete printers
prnport.vbs to list, add, delete TCP ports
prmdrvr.vbs to list, add, delete drivers.
there are a couple other for queue and job controls
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto
This posting is provided "AS IS" with no warranties, and confers no rights.
"ITNATE" <(E-Mail Removed)> wrote in message
news:70218826-5D0C-46BD-A4D1-(E-Mail Removed)...
> Hello,
> Does anyone know how I can add and delete a local printer via the command
line. I'm installing an application via a WinInstall package and this
application requires that a particular local printer be present first. I
need to be able to this to a very large group of people. So I thought of
creating a batch file to run along with my distribution package.
>
> Thanx!