Skip to content

Net_DeletePrinter

Removes a network printer connection. If the printer isn’t connected, the function writes this to the log and returns TRUE.

Printer connections belong to the user. Use the function in a user (US) job.

Net_DeletePrinter(sPrinterShare) As Boolean

UNC path to the network printer that must be removed

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

Scripting Guidelines

Net_AddPrinter Net_SetDefaultPrinter Net_EnumPrinters Net_EnumPrinterPaths Constants Package Property Variables