Tagged: OneLiner

PSOL: List size of all files matching a pattern

Just recently started to play around with PowerShell… so here is my first PSOL-post (PowerShell One Liner), expect more.

get-Childitem C:\ -recurse | where{$_.Extension -match "pst"} | Format-Table FullName, Length