How to Identify and Remove Old Files With PowerShell

Today, I want to share a second PowerShell function, Remove-OldFiles, that shows how to identify and remove old files. Typically, you want such a function in order to keep log and temp folders clean from very old stuff. Old files, what does that mean? The function investigates the LastWriteTime property from each file found and […]