Net_SetDefaultPrinter

Description

Sets an installed printer as the default printer

 

Syntax

Net_SetDefaultPrinter(sPrinterShare) As Boolean

 

Parameters

sPrinterShare (String)

UNC path to the network printer

 

Example

VBScript
If bStatus Then bStatus = Net_SetDefaultPrinter("\\CAPAINSTALLER\PRINTERSHARE")

Scripting Guidelines

 

Related functions

Net_AddPrinter Net_DeletePrinter Net_EnumPrinters Net_EnumPrinterPaths