Delete a Printer Connection

Removes a printer connection to a network printer. Script must be run on the local computer.

VBScript Code


Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection "\\PrintServer\xerox3006"