SyntaxFix
Write A Post
Hire A Developer
Questions
My proposal:
$dir="C:\temp\" get-childitem $dir -file -Rec | group Directory | where Name -eq $dir | select Name, @{N='Size';E={(($_.Group.Length | measure -Sum).Sum / 1MB)}}