pablohoney Posted June 4, 2017 Posted June 4, 2017 Looking for a script to create an automated task to empty the recycle bin.
pablohoney Posted June 5, 2017 Author Posted June 5, 2017 Hi Hanfelt thanks - didn't seem to work for some reason. I'll keep searching and see if I have luck with some other options. Lots of different recommendations from all over. Thanks again.
Hanfelt Posted June 5, 2017 Posted June 5, 2017 Sorry i only tried on my computer and there it worked. I will try it in pulseway as a script as well.
Staff Chris Posted June 8, 2017 Staff Posted June 8, 2017 rd /s /q %systemdrive%\$Recycle.bin This CMD line will delete the RecycleBin content for all users, but in order to see the changes on a screen you will need to restart the explorer.exe.Â
pablohoney Posted June 9, 2017 Author Posted June 9, 2017 Hi Chris, To automate this as a scheduled task - should I just add it directly as is as a powershell script? Thank you.
Staff Chris Posted June 14, 2017 Staff Posted June 14, 2017 Hi, You will need to create a Bach script. And run it as a Scheduled task.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now