Adding or Removing Printers (VBScript)

AddThis Social Bookmark Button

Adding or Removing printers using VBScript.

The following script can be triggered by adding the path to the vbs file to the network logon script.
Printers can be added or removed when this script is run.

Set WshNetwork = WScript.CreateObject("WScript.Network")

'Remove old Printers
PrinterPath = "\\server\printershare"
WshNetwork.RemovePrinterConnection PrinterPath, true, true

'Add New Printers

PrinterPath = "\\server\printershare\"
WshNetwork.AddWindowsPrinterConnection PrinterPath

Only members can add comments. Becoming a member is free. See the Members section for more information.