senpost
1/24/2013 - 9:34 PM

gistfile1.ps1

dir | where { $_.PSIsContainer }
#Or 
dir  | where {$_.Attributes -eq 'Directory'}