PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Printing Adding/Deleting a local printer via the command line.

Reply

Adding/Deleting a local printer via the command line.

 
Thread Tools Rate Thread
Old 06-01-2004, 11:56 PM   #1
=?Utf-8?B?SVROQVRF?=
Guest
 
Posts: n/a
Default Adding/Deleting a local printer via the command line.


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!
  Reply With Quote
Old 08-01-2004, 02:59 AM   #2
Alan Morris\(MSFT\)
Guest
 
Posts: n/a
Default Re: Adding/Deleting a local printer via the command line.

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" <anonymous@discussions.microsoft.com> wrote in message
news:70218826-5D0C-46BD-A4D1-76190243E5A5@microsoft.com...
> 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!



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off