Rename the files to .bat
good luck
Main Topics
Browse All TopicsThis seems so simple but I can not figure it out. I just want a simple bat file to install a Hp Laserjet 4200 printer with the ip of 10.1.0.108 that is it. I do not understand VBS scripts at all but I tried them with no success. I just make simple login scripts that users execute upon logging into the network. I also tried a ton of times with rundll32 printui.dll,PrintUIEntry and all the switches but I could not figure it out.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The best way to see if this basic scipting will work as it has been said
Is to test if your server to see if it can push a driver. Please do the following
start | run
\\IP Address - click ok
you will be greeted with the root share and will see the printer double click on the printer listed and it will install for you.
if this can be done then the script can be done
if your printer is just an IP and has no "Server" abilities this is simple as well
Pick a server and install the printer on that system then share it point the stated script at this now print server and all users will print to your printer through the system acting as the print server
here is a portion of one of the batch files i use in production every day
-----------------Start batch here--------------
REM Add Mapped Drives
if exist p:\*.* net use p: /d
net use p: \\server1\share1 /persistent:yes
if exist s:\*.* net use s: /d
net use s: \\server2\scan\%username% /persistent:yes
if exist u:\*.* net use u: /d
net use u: \\server1\Users\%username%
REM Set Workstation time
NET TIME %logonserver% /SET /Y
REM Set Home Page As Google
REM REG ADD "HKCU\SOFTWARE\MICROSOFT\I
REM Add printer(s)
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Server1\printer1
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Server1\Printer2
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Copier1\PCL6
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\192.168.10.3\HPLJ1320
REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\192.168.10.3\HPLJ1320
-------------end batch here----------------------
RunDLL32 will work fine as long as the TCP/IP port for the printer already exists. If it doesn't, you need to create one, using PRNPORT.VBS. See:
http://www.microsoft.com/r
Business Accounts
Answer for Membership
by: JaimesEX22Posted on 2009-09-18 at 13:36:03ID: 25369775
I've attached the scripts i use, just rename the netbios and printer name, the net bios can be an ip address.
good luck
Printer Script Add
Printer Script Remove