Solved

printui.dll syntax for installing standard tcp/ip printer

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

810 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