PC Review


Reply
Thread Tools Rate Thread

Adding/Deleting a local printer via the command line.

 
 
=?Utf-8?B?SVROQVRF?=
Guest
Posts: n/a
 
      6th Jan 2004
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
 
 
 
 
Alan Morris\(MSFT\)
Guest
Posts: n/a
 
      8th Jan 2004
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!



 
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
command line - add new local printer port Keith G Hicks Windows XP General 10 12th Mar 2010 10:00 PM
Adding printer/port through command line automatically =?Utf-8?B?QXJjaGkz?= Windows XP Print / Fax 1 9th Jul 2007 11:25 PM
Problem adding printer from command line =?Utf-8?B?YnJ5YW4=?= Windows XP General 2 11th Nov 2004 07:19 PM
Re: Adding a TCP/IP port and printer via the command line (batch file) Walter Schulz Microsoft Windows 2000 Printing 0 14th Nov 2003 06:24 PM
Help Adding Printer Drivers via Command Line Yogi_Bear_79 Microsoft Windows 2000 CMD Promt 0 25th Jul 2003 02:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:50 PM.