Why doesn't this work? My output has blanks for the LastWriteTimes and the functional version of the code (with Remove-Item instead of Write-Host) doesn't delete any files.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results