Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

creating a batch file for automatic printer install - help needed

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

650 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