Schedule Windows to Empty Recycle Bin Automatically!

:recycle: Schedule Windows to Empty Recycle Bin Automatically! :recycle:

:boom: STEPS:

:small_orange_diamond: Open the Task Scheduler by pressing Windows Key + R and then typing taskschd.msc!
:small_blue_diamond: Under the “Action” category, Click on the option “Create Basic task”!
:small_orange_diamond: A Task Creation Wizard will be opened. Enter the Name of the Task and Description {If Needed} & click on “Next” button!
:small_blue_diamond: Set up the time interval for the Task by selecting from the given options & click on “Next” button!
:small_orange_diamond: Set up some other options until you reach the screen where you will be asked to set the Action!
:small_blue_diamond: On the next screen type in cmd.exe on the Program/Script field & paste the below command in the “Add Arguments” field:
/c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin"
:small_orange_diamond: Now you need to review all the settings. Then, Click on the “Finish” button!
:small_blue_diamond: To check the Scheduled Task, Select the Task from the main window of Task Scheduler and then click on “Run”. It will empty the Recycle Bin automatically!

:white_check_mark: That’s it! Hope y’all like it!

1 Like