Adding a Printer Connection by Using WSH

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheGMan
    New Member
    • Nov 2006
    • 1

    Adding a Printer Connection by Using WSH

    Hello,

    Can you please help? Based on this link:

    http://www.microsoft.c om/technet/scriptcenter/guide/sas_prn_avmt.ms px?mfr=true

    I know how to add a single printer connection using WSH. But, I would like to know how to add all printers attached to a Windows Print Server dynamically? In other words, if I have a dozen printers I want to avoid coding the following statement 12 times for all twelve of my printers.

    objNetwork.AddW indowsPrinterCo nnection “\\PrinterServe r\DaffyPrinter”
    objNetwork.AddW indowsPrinterCo nnection “\\PrinterServe r\DonaldPrinter ”


    Is there a way to dynamically add all the printers in one statement? Thanx
Working...