I am currently trying to get the last modified date of all files on a 128.5GB folder containing multiple sub-directories and files. However, whenever the scripts runs, its uses almost all the memory on the server. (I assume that this is because its trying to fit all of the data in the memory before outputting it in a .csv files). Is there a way that we could still output the data on a .csv file without using all the memory on the server. Please find my below script:-

```
$results = Get-ChildItem -Force -Recurse -File -Path "C:\inetpub\wwwroot\" | Sort LastWriteTime -Descending | Select-Object FullName, LastWriteTime 

$results | Export-Csv "C:\Users\serveradmin\Documents\dates.csv" -notype 

```