Use the WSH AddPrinterConnection method, followed by the SetDefaultPrinter method. It'd all take about 4 lines of code.
Larry A. Duncan Field Systems Engineer, Southeast Region Altiris Inc. [EMAIL PROTECTED] T: 615.599.5031 T: 800.869.9747 F: 615.599.5259 Have you maximized your investment in SMS, MOM and other Windows Mgmt tools? Get expert answers, hands-on training, and great utilities at the Microsoft Management Summit. Register today at http://www.altiris.com/aem/mmsconf2002/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Morgan, Joshua Sent: Thursday, February 07, 2002 1:32 PM To: NT 2000 Discussions Subject: Default Printer I saw the postings about con2prt but I was wondering if anyone new how to install printers using a Vbscript and then automatically set a printer to be default Joshua Morgan PROFITLAB Network Engineer [EMAIL PROTECTED] "One is glad to be of service " --Robin Williams (Bicentennial Man)-- ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.320 / Virus Database: 179 - Release Date: 1/30/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.320 / Virus Database: 179 - Release Date: 1/30/2002 ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
