pablohoney Posted June 4, 2017 Share Posted June 4, 2017 Looking for a script to create an automated task to empty the recycle bin. Link to comment Share on other sites More sharing options...
Hanfelt Posted June 5, 2017 Share Posted June 5, 2017 Powershell try: Clear-RecycleBin -force UTS Brian 1 Link to comment Share on other sites More sharing options...
pablohoney Posted June 5, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
Hanfelt Posted June 5, 2017 Share 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. Link to comment Share on other sites More sharing options...
Staff Chris Posted June 8, 2017 Staff Share 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. Link to comment Share on other sites More sharing options...
pablohoney Posted June 9, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
Staff Chris Posted June 14, 2017 Staff Share Posted June 14, 2017 Hi, You will need to create a Bach script. And run it as a Scheduled task. Link to comment Share on other sites More sharing options...
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