Friday, July 6, 2018

PS Tool 1.1 -Script to find the file size and count with file extensions

Use below script to find the file size and count with file extensions

Get-childitem c:\work -file -recurse | where extension | group extension | 
Select Name,Count,@{Name="Size";Expression={($_.group | measure length -sum).sum} }|
 Sort Size -Descending | format-table -AutoSize

Alias - Get-childitem / dir / ls







Featured Posts

Day 2: Waiting, Hoping… and Getting Frustrated

​ Thursday morning, the last week of April 2026. I walked back into the gym at exactly the same time — 9:00 AM. There’s something about ro...