• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

VBS logon script to add multiple printers shared on 2003 Server?

Looking for a VBS script that I can attach as a logon/startup script in a Win2003 domain. Client machines are all running XP Pro. I've got one that can add one printer but I don't see a way to add more than one. Also it should detect any currently installed printers and add only the ones not installed. Help would be much appreciated. Thanks
 
try this:

Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3, UNCpath4, UNCpath5
UNCpath1 = "\\branch01\B01HP5Si"
UNCpath2 = "\\branch01\5Si Envelope"
UNCpath3 = "\\branch01\b01p002"
UNCpath4 = "\\branch01\Front_Envelope"
UNCpath5 = "\\branch01\SR_MICR"
Set multiPrinter = CreateObject("WScript.Network")
multiPrinter.AddWindowsPrinterConnection UNCpath1
multiPrinter.AddWindowsPrinterConnection UNCpath2
multiPrinter.AddWindowsPrinterConnection UNCpath3
multiPrinter.AddWindowsPrinterConnection UNCpath4
multiPrinter.AddWindowsPrinterConnection UNCpath5
multiPrinter.SetDefaultPrinter UNCpath1
WScript.Quit
 
Back
Top