Solved

printui.dll syntax for installing standard tcp/ip printer

Posted on 2012-03-18
1
493 Views
Last Modified: 2012-04-05
Hi
I wish to install printer in windows 2008r2 via a script, I believe this is done with printui.DLL.
What would the the syntax be if I wished to install a printer called prn1 on tcp address 192.168.0.1 using the laser jet 4 driver.
Thanks
0
Comment
Question by:sykotex
[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 1

Accepted Solution

by:
Hafskip earned 500 total points
ID: 37734553
I use the vbs that com with windows xp

REM ******************************************************************
echo install HP500 printer
Rem HP 500
if exist "C:\WINDOWS\system32\spool\drivers\w32x86\3\HPLTDRV2.DLL" goto HP800_OK
RUNDLL32 PRINTUI.DLL,PrintUIEntry /ia /c\\%COMPUTERNAME% /m "HP DesignJet 800 24 by HP" /h "Intel" /f \\server\Drivers\HP800\oemsetup.inf
cscript \\server\netlogon\prnport.vbs -a -s %COMPUTERNAME% -r HP800 -h 192.168.1.9 -o raw
cscript \\server\netlogon\prnmngr.vbs -a -p "HP DesignJet 800 24 by HP" -s %computername% -m "HP DesignJet 800 24 by HP" -r HP800
:HP800_OK

E
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 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