Powershell: Get Size of Child Directories
gci -recurse -force |
? { $_.GetType() -like 'System.IO.DirectoryInfo'} |
select-object Name,@{Name="size"; Expression = {
($_.GetFiles() |
Measure-Object -Property Length -Sum |
Measure-Object -Property Sum -Sum).Sum}} | sort-object -Property size