I have a script for a while now, which runs when a user logs on.
It adds printers and sets the default. Users are running Windows XP.
Now I want to remove a printer, but I can't get it work.
When I try
I get the error
"Object doesn't support this property or method:RemoveWindowsPrinte
This happens no matter which printer I try to remove, so its not an error in my printername.
Dim objnetwork, strUNCPrinter
Set objNetwork = CreateObject("WScript.Network")
' This works
strUNCPrinter = "\\myprinterserver\W4-HPLJP3005"
' This doesn't
strUNCPrinter = "\\myprinterserver\W3-HPLJ4200"
Set objNetwork = Nothing