?
Solved

creating a batch file for automatic printer install - help needed

Posted on 2007-03-17
1
Medium Priority
?
308 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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
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…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Suggested Courses

741 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