[THIN] Re: script for adding a print driver.

  • From: Evan Mann <emann@xxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Fri, 4 Oct 2002 11:25:05 -0400

I was playing around with rundll32 and printui.dll to try and automate
installation of printers but never got it to work.  Here is what I played
with:

rundll32 printui.dll,PrintUIEntry /if /b "AdminHP on ADMINDC" /f
%windir%\inf\ntprint.inf /r "HP_0CCC41_IP" /m "HP LaserJet 4050 Series PS"

"AdminHP on ADMINDC" is the name of the shared printer on my server and "HP
LaserJet 4050 Series PS" is the driver it users.  I forgot where I found all
the switches and what not.  I picked it all up off Google.

Anyone ever played with this and get it to work?


-----Original Message-----
From: Ron Oglesby [mailto:roglesby@xxxxxxxxxxxx]
Sent: Friday, October 04, 2002 11:17 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: script for adding a print driver.



I found this in the script repository from MS but it only works with
.NET or XP machines

Set objWMIService =3D GetObject("winmgmts:")
Set objDriver =3D objWMIService.Get("Win32_PrinterDriver")
objDriver.Name =3D "Apple LaserWriter 8500"
objDriver.SupportedPlatform =3D "Windows NT x86"
objDriver.Version =3D "3"
errResult =3D objDriver.AddPrinterDriver(objDriver)


Ron Oglesby
Senior Technical Architect
=20
RapidApp
Office 312.372.7188
Mobile 312.961.2380
email roglesby@xxxxxxxxxxxx
=20

-----Original Message-----
From: Ron Oglesby=20
Sent: Friday, October 04, 2002 10:03 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] script for adding a print driver.


Anyone using a VBS (or any other type of script) for adding a large
number of print drivers to their servers during a scripted install?  If
so can I take a peek at it?

Ron Oglesby
Senior Technical Architect
=3D20
RapidApp
Office 312.372.7188
Mobile 312.961.2380
email roglesby@xxxxxxxxxxxx
=3D20

**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: