$limit = (Get-Date).AddDays(-702) $path = "X:\\" $files = Get-ChildItem -Path $path -Force | Where-Object { !$_.PSIsContainer -and $_.LastWriteTime -lt $