creating a batch file for automatic printer install - help needed

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?
"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
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
Who is Participating?
SteveGTRConnect With a Mentor Commented:
Maybe something like this:

@echo off


set printer=
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,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.