WshNetwork.AddWindowsPrinterConnection

MAP a Network (remote) Printer

Syntax 
      myObject.AddWindowsPrinterConnection(strLocalName UNC_Printer_Name)


Example

   Dim net
   Set net = CreateObject("WScript.Network")    
   net.AddWindowsPrinterConnection "\\ServerName\PrinterName"

or
   net.AddWindowsPrinterConnection "LPT1", "\\ServerName\PrinterName"

“God made everything out of nothing, but the nothingness shows through” ~ Paul Valery

Related:

Printer, add printer - WshNetwork.AddPrinterConnection
printcon.vbs - change a Print connection to a different Queue/Server
NET VIEW - to view a list of printers
NET PRINT - View and Delete print jobs
PRNCNFG - Display, configure or rename a printer
PRNDRVR - Add, delete or list printer drivers
PRNMNGR - Add, delete, or list printers / connections, set the default printer
Network Printing - Advice & Tips


 
Copyright © SS64.com 1999-2019
Some rights reserved