count files by extension using powershell

by Sitaram Pamarthi on June 26, 2010

Just a tip.

PS C:> Get-Childitem c:myfiles -Recurse | where { -not $_.PSIsContainer } | group
Extension -NoElement | sort count -desc

This post was written by...

– who has written 462 posts on Techibee.com.

Sitaram Pamarthi is a windows administrators with 9+ years of experience.read more

{ 3 comments… read them below or add one }

Maria March 13, 2012 at 8:18 am

Awesome – saved my life

Reply

hamid April 25, 2012 at 10:14 am

hi
that’s grate
I need this code
;-)

Reply

Rob Andren March 6, 2013 at 11:01 am

Brilliant. Glad I didn’t spend any time reinventing the wheel. Exactly what I needed. Thank you.

Reply

Leave a Comment

Previous post:

Next post: