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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just put a single quote ' - in front of the wscript.echo line (or remove it completely.
ASKER
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 :-)
ASKER
Also how would you make it silentlly remove the printers as this one pops up an ok box about every printer its removed.