Skip to content

Instantly share code, notes, and snippets.



Last active Jan 30, 2016
What would you like to do?
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