Solved

creating a batch file for automatic printer install - help needed

Posted on 2007-03-17
1
307 Views
Last Modified: 2010-04-16
We have alot of clients who come into one of our offices to work.
They connect to the network as they need Print services.

It is quite time consuming having to install and set up a print driver and connect to the network printer everytime someone new comes in. (which is alot)

I wish to create a batch file for the users to install a printer automatically.

I have no experience with creating scripts for batch files; so can anyone show me create a batch file for adding printers as described in the link below?

http://support.microsoft.com/kb/314486
"How to add printers with no user interaction in Windows XP"

The printer that is used sits on a print server with IP address of 172.16.175.10.
Ideally this batch file could sit in a folder with a copy of the print dirver, then i could easily distribute this folder to anyone new who needs it.

Any help is much appreciated
0
Comment
Question by:chouckham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 30

Accepted Solution

by:
SteveGTR earned 500 total points
ID: 18740566
Maybe something like this:

@echo off

setlocal

set printer=172.16.175.10
set prtName=AGFA-AccuSet v52.3
set prtRefName=Test Printer


rundll32 printui.dll,PrintUIEntry /ia /c\\%prtAddr% /m "%prtName%" /h "Intel" /v "Windows 2000" /f %windir%\inf\ntprint.inf

rundll32 printui.dll,PrintUIEntry /if /b "%prtRefName%" /c\\%prtAddr% /f "%windir%\inf\ntprint.inf" /r "lpt1:" /m "%prtName%"

Good Luck,
Steve
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring Remote Assistance for use with SCCM
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question