I have a VBS script that I've written that almost does what I want it to. See Below. Here's my problem. If the user doesn't have one of the specified printers mapped, the script errors out and doesn't finish. Is there another IF statement or else statement I can add that will check to see if the user has the printer mapped and if not continue with the script removing the printers they do have.
This is what I have:
Set WshNetwork = CreateObject("WScript.Network")
Set objShell = CreateObject("Wscript.Shell")
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.