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

  • From: Joe Shonk <JShonk@xxxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Fri, 4 Oct 2002 09:40:13 -0700

Printer1 will be set to the default printer.

On Error Resume Next

dim Printer1
dim Printer2
dim Printer3
dim Printer4
dim Printer5

printer1 = ""
printer2 = ""
printer3 = ""
printer4 = ""
printer5 = ""

Set WshNetwork = CreateObject("WScript.Network")

Printer1 = "\\PServer\Printer1"
Printer2 = "\\PServer\Printer2"
Printer3 = "\\Server2\Printer1"

if printer1 <> "" then 
  WshNetwork.AddWindowsPrinterConnection Printer1
  WshNetwork.SetDefaultPrinter Printer1
end if
if printer2 <> "" then 
  WshNetwork.AddWindowsPrinterConnection Printer2
end if
if printer3 <> "" then 
  WshNetwork.AddWindowsPrinterConnection Printer3
end if
if printer4 <> "" then 
  WshNetwork.AddWindowsPrinterConnection Printer4
end if
if printer5 <> "" then 
  WshNetwork.AddWindowsPrinterConnection Printer5
end if

-----Original Message-----
From: Ron Oglesby [mailto:roglesby@xxxxxxxxxxxx]
Sent: Friday, October 04, 2002 8: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
=20
RapidApp
Office 312.372.7188
Mobile 312.961.2380
email roglesby@xxxxxxxxxxxx
=20

**********************************************
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: