Posts

Showing posts from April, 2025

Iterate thru folder hierarchy

Produce the list of files by iterating the folder stricture  get-childitem -Path  "\\FOLDERNAME\Shares\Archive\REPORTNAME" -recurse -Attributes !Directory ` | Where-Object { $_.CreationTime -ge "04/12/2025" -and $_.Length -gt 864} ` | Select-Object FullName, CreationTime, Length | Export-Csv -Path "C:\temp\OUTPUTFILENAME.csv" -NoTypeInformation Remember end line with ` (back tick) to continue on to the next line