Solved

creating a batch file for automatic printer install - help needed

Posted on 2007-03-17
1
293 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
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now