This is a simple script which can be used for housekeeping growing list of files like IIS Logs, Temporary Files and so on. No special Snap-Ins or Modules required to be imported.
https://github.com/junecastillote/DeleteFilesOlderThanXDays- DeleteFilesOlderThanXDays.ps1 - The main script
- DirList.txt - List of folders to perform deletion against. This can be a local, shared or UNC paths.