Solved

printui.dll syntax for installing standard tcp/ip printer

Posted on 2012-03-18
1
476 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
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

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to count occurrences of each item in an array.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

20 Experts available now in Live!

Get 1:1 Help Now