Solved

printui.dll syntax for installing standard tcp/ip printer

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
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 …
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…
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 …

932 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

10 Experts available now in Live!

Get 1:1 Help Now