MAP a Network (remote) Printer

      myObject.AddWindowsPrinterConnection(strLocalName UNC_Printer_Name)


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

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

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

Related VBScript commands

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 © 1999-2023
Some rights reserved