SCRIPT: Delete network printer

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

Advertisements

Posted on 07/10/2009, in Scripting. Bookmark the permalink. Leave a comment.

Comments are closed.

%d bloggers like this: