When a printer dies or is replaced and a new one installed you need a way to remove the old printer from users machines. But you don't want to do this by hand.
This script can remove a mapped printer and can be added to a logon script or run via group policy.
———-COPY EVERYTHING BELOW THIS LINE for the Script———-
'This script removes a printer from your local list of printers
'Created by Chey Harden on 10.9.07
On Error Resume Next
Dim objNetwork, objPrinter
objPrinter = "\\PRINT SERVER NAME HERE\PRINTER NAME HERE"
Set objNetwork = CreateObject("WScript.Network")
Set objNetwork = Nothing
———-COPY EVERYTHING ABOVE THIS LINE for the Script———-
PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!!
1. Add this to a logon script or to a new GPO.
This information is provided "AS IS" with no warranties expressed or implied.