Link to home
Start Free TrialLog in
Avatar of danielsercombe
danielsercombe

asked on

Delete ALL Printers Script - Logon/Logoff

I want a script that deletes all printers on logoff. I have been searching for days and i have only got scripts where you have to specify the printer you want to remove.

I believe this cannot be done in a batch file so I guess it needs to be a VBS script. Please can someone help.
ASKER CERTIFIED SOLUTION
Avatar of Paka
Paka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of danielsercombe
danielsercombe

ASKER

Thank you for the quick reply. The first one works well however the second one doesnt.

Also how would you make it silentlly remove the printers as this one pops up an ok box about every printer its removed.
Just put a single quote ' - in front of the wscript.echo line (or remove it completely.
excellent. both scripts are working a treat. You are a life saver after 2 days of searching the net and the payment to this site has paid off already. Thank you :-)