Is there a script already that empties the recycle bin and clears all the log files?

@Fred ,

Please refer to these scripts

These are great thanks Jimmy. What about the system logs and error reporting logs and the like?

Hello @Fred

Kindly, refer the below script link.…ws-maintenance

Above script will perform the following tasks:

Tasks will be performed by the procedure:
Clears all Windows Temp Files
Clears all Internet Temp Files
Disk Cleaning
Fixing Disk Errors (All Unremovable Disks)
Clear Printer Spool (Queuing Printer Jobs)
Clears DNS Cache
Releases IP
Renews IP
Clear Recycle Bin
Performs S.M.A.R.T. Check

And also refer the share script links on the previous comment box by @Jimmy

Thank you