Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSHNetwork.RemoveWindowsPrinterConnection with WildCard

Status
Not open for further replies.
Dec 27, 2002
167
US
I've looked around and did not see an answer.

I have a script that creates Printers.
But I want to remove everyone first.

To remove a printer I see this

WSHNetwork.RemoveWindowsPrinterConnection "\\ServerOld\HP5si"



Is there a wild card for this? Will this work?


WSHNetwork.RemoveWindowsPrinterConnection *
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top