We're migrating printers from 1 server to 2 new servers. All HP goes to one server now and non HP to another. The script works great on Windows XP. But on Windows 2000 it adds the new printers pointed to the new servers correctly, but fails to delete the old printers. I've tried tried using a script to remove 1 printer from a 2000 box and it fails saying it can't find the connection.
'This fails on W2K but works fine on XP.
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection "\\OLDSERVER\HP12-3017"
Any clues as to why this happens or suggestions on how to remove a printer with VBS from a W2K machines would be great!!
Thanks for any help!
-Steve
'This fails on W2K but works fine on XP.
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection "\\OLDSERVER\HP12-3017"
Any clues as to why this happens or suggestions on how to remove a printer with VBS from a W2K machines would be great!!
Thanks for any help!
-Steve