WELCOME

2009年3月4日 星期三

Delete mapped network print

#####################
Option Explicit
Dim DelPrint, UNCpath
UNCpath = "\\Server1\Printer"
Set DelPrint = WScript.CreateObject("WScr
ipt.Network")
DelPrint.RemovePrinterConnection UNCpath, true, true
Wscript.Echo "This printer was removed : " & UNCpath
WScript.Quit

' End of Example Script to remove printer
#######################

沒有留言:

張貼留言