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

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


What does the /h "Intel" and /v "Windows 2000" specify?

Where are you specifying the name of the printer when it gets installed on
the local computer or is that one of the above?

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



Ok. Got it.=20

This will add a driver to a server with no user interaction. If you use
the second line it will do it to a remote computer. I am going to
massage it a little and set it up to pull the names of the drivers from
a txt file and I should be set.

Thanks for the tip Evan.

rundll32 printui.dll,PrintUIEntry /ia /m "AGFA-AccuSet v52.3" /h "Intel"
/v "Windows 2000" /f %windir%\inf\ntprint.inf

rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m "AGFA-AccuSet
v52.3" /h "Intel" /v "Windows 2000" /f %windir%\inf\ntprint.inf



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:26 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: script for adding a print driver.


This is something like what I need. All I need is the driver. Let me see
if I can do anything with that.

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

-----Original Message-----
From: Evan Mann [mailto:emann@xxxxxxxxxxxx]=3D20
Sent: Friday, October 04, 2002 10:25 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: script for adding a print driver.


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 =3D3D3D GetObject("winmgmts:")
Set objDriver =3D3D3D objWMIService.Get("Win32_PrinterDriver")
objDriver.Name =3D3D3D "Apple LaserWriter 8500"
objDriver.SupportedPlatform =3D3D3D "Windows NT x86"
objDriver.Version =3D3D3D "3"
errResult =3D3D3D objDriver.AddPrinterDriver(objDriver)


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

-----Original Message-----
From: Ron Oglesby=3D3D20
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
=3D3D3D20
RapidApp
Office 312.372.7188
Mobile 312.961.2380
email roglesby@xxxxxxxxxxxx
=3D3D3D20

**********************************************
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=3D3D20
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=3D20
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=3D20
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=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: