Monday, September 17, 2007

VB Scripting - Map Network Printer

This script will install network printer.

Rem Script created: 31.07.2007 12:13
Rem Author: roshanp

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "file://servername/Printer01"WshNetwork.SetDefaultPrinter "file://servername/Printer01"

-Thanks
@Roshan