Here's the situation. I just put together a new print server, so we need to create some scripts to remove all of the printers that are currently installed on our users' PCs. I'm not having any problems with the script to add the new printers, but removing the old printers has been a huge pain in the butt.
Here's an example of a login script to connect to the old print server for a particular set of users:
'
' Printers.vbs - Windows Logon Script.
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_Dell3110cn_IT"
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_canonIR3220Color_CopyRoom"
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_canonIR3220_AlwaysColor"
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_CanonIR6570_CopyRoom"
So by looking at the current login script, can anyone tell me where to begin to remove all network printers from our users' printer list?
Thanks in advance!
Here's an example of a login script to connect to the old print server for a particular set of users:
'
' Printers.vbs - Windows Logon Script.
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_Dell3110cn_IT"
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_canonIR3220Color_CopyRoom"
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_canonIR3220_AlwaysColor"
objNetwork.AddWindowsPrinterConnection "\\(servername)\tek_CanonIR6570_CopyRoom"
So by looking at the current login script, can anyone tell me where to begin to remove all network printers from our users' printer list?
Thanks in advance!