Skip to content

Net\_SetDefaultPrinter

Sets an installed printer as the default printer

Net_SetDefaultPrinter(sPrinterShare) As Boolean

sPrinterShare (String)

UNC path to the network printer

VBScript

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

Scripting Guidelines

Net_AddPrinter Net_DeletePrinter Net_EnumPrinters Net_EnumPrinterPaths