newbietelecom
MIS
I know this subject have been talked about alot but here's the code I use to remove printers and it works if the printer is already installed. If it's not installed already, it gives error. How can I make a script that will remove any installed printer on a server, so that a user can run? I need this script to remove printers from an old server and add printers from new server.
Dim net
Set net = CreateObject("WScript.Network")
net.RemovePrinterConnection "\\oldserver\printer"
Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\newserver\printer
Dim net
Set net = CreateObject("WScript.Network")
net.RemovePrinterConnection "\\oldserver\printer"
Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\newserver\printer