Skip to content

Net\_DeletePrinter

Removes a network printer from the local computer

Net_DeletePrinter(sPrinterShare) As Boolean

sPrinterShare (String)

UNC path to the network printer that must be removed

VBScript

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

Scripting Guidelines

Net_AddPrinter Net_SetDefaultPrinter Net_EnumPrinters Net_EnumPrinterPaths