I would like to be able to remove all of the network printers from a computer except for the default one. Here is a snipit of the code I am using that removes all networked printers (lifted from markdmac's faq. thank you!!! you're a lifesaver):
Thanks for your help in advance!
Code:
Set WSHPrinters = WSHNetwork.EnumPrinterConnections
For LOOP_COUNTER = 0 To WSHPrinters.Count - 1 Step 2
If Left(WSHPrinters.Item(LOOP_COUNTER +1),2) = "\\" Then
WSHNetwork.RemovePrinterConnection WSHPrinters.Item(LOOP_COUNTER +1),True,True
End If
(LOOP_COUNTER +1),True,True
Next