[This is preliminary documentation and subject to change.]
The AddPrinterConnection method maps the remote printer specified by strRemoteName to the local resource name strLocalName.
WshNetwork.AddPrinterConnection strLocalName, strRemoteName, [bUpdateProfile], [strUser], [strPassword]
Set WshNetwork = Wscript.CreateObject("Wscript.Network")
WshNetwork.AddPrinterConnection "LPT1", "\\Server\Print1"
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.