Skip to content

Instantly share code, notes, and snippets.

@bcdady
Last active January 17, 2023 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcdady/823ff16638e275858263 to your computer and use it in GitHub Desktop.
Save bcdady/823ff16638e275858263 to your computer and use it in GitHub Desktop.
User PowerShell to List files in a folder, Group by extension, sorted in descending order by most common extension(s)
# -Recurse is optional
Get-ChildItem -Path $env:USERPROFILE\Downloads -Recurse | Group-Object -Property Extension | sort -Descending -Property Count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment