PowerShell – Ordenar arquivos

gci . -r | sort Length -desc | select fullname -f 10

Get-ChildItem -Path c:\ -Recurse | Sort-Object Length -Descending | Select-Object length,name,directory -First 100 | Format-Table -AutoSize

Referencias:

  • How do I find the 10 largest files in a directory structure
    • https://stackoverflow.com/questions/798040/how-do-i-find-the-10-largest-files-in-a-directory-structure
  • Sort Files by Size PowerShell
    • https://gist.github.com/tomarbuthnot/1c148a3ad09641f6313d