Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nguyenl95/02e7b4d5734ea549b08d4827da9c3208 to your computer and use it in GitHub Desktop.
Sort Files by Size PowerShell
Get-ChildItem -Path c:\ -Recurse | Sort-Object Length -Descending | Select-Object length,name,directory -First 100 | Format-Table -AutoSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment