Solved

printui.dll syntax for installing standard tcp/ip printer

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
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 dynamically set the form action using jQuery.

751 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