I've tried removing several network printers via rundll32 printui.dll, PrintUIEntry /dn /dd /q /n \\SERVER\PRINTER
also tried the /dl
but nada
and
WSHNetwork.RemovePrinterConnection "\\\Server\Printer",True,True
I've ran the scripts remotely and locally on different user profiles and the scripts appear to run without error but the printers never get removed, they're still there!
If the user right clicks on the printer they can remove it by clicking Remove Device.
Wondering if anyone else has seen this issue in Windows 7. Only thing I can think of is that it's a UAC issue..