Use this script to delete a network printer:
Option Explicit
Dim objNetwork, strUNCPrinter
strUNCPrinter = "\\server\mprinter"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection strUNCPrinter
Wscript.Quit
Use this script to delete a network printer:
Option Explicit
Dim objNetwork, strUNCPrinter
strUNCPrinter = "\\server\mprinter"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection strUNCPrinter
Wscript.Quit