WshNetwork.SetDefaultPrinter
The SetDefaultPrinter method sets default print to the remote printer specified by strPrinterName.
Syntax
WshNetwork.SetDefaultPrinter strPrinterName
Parameters
-
strPrinterName
-
Remote printer name to set as default, such as "\\Server\Printer1". Note that strPrinterName cannot be a local name such as "LPT1:".
© 1997 by Microsoft Corporation. All rights reserved.