Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Oneliner
- Get-ChildItem d:\ -Recurse | where PSIsContainer | %{$i=$_;$subFolderItems = (Get-ChildItem $i.FullName | where Length | measure Length -sum);[PSCustomObject]@{Fullname=$i.FullName;MB=[decimal]("{0:N2}" -f ($subFolderItems.sum / 1MB))}} | sort MB -Descending | ft -AutoSize
Add Comment
Please, Sign In to add comment