How to remove printers in script? - TechRepublic
General discussion
October 22, 2000 at 03:01 AM
plutonb

How to remove printers in script?

by plutonb . Updated 25 years, 5 months ago

Running Win2000 Terminal Services we’ve used a script like this to add three printers to users that log on:

Set WshNetwork = CreateObject(“WScript.Network”)
PrinterPath = “\\Server\Printer”
PrinterDriver = “PrinterDriver”
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver

Now, how on earth do I delete one of the printers from their profiles, using a login script?
The removeprinterconnection method doesn’t work, cause the printers aren’t mapped to a local port I guess…

This discussion is locked

All Comments