How to find files in directories with certain name using Get-ChildItem? How to find files in directories with certain name using Get-ChildItem? powershell powershell

How to find files in directories with certain name using Get-ChildItem?


I would use the Filter parameter instead of Include, it performs much fatser

gci .\topfolder -rec -filter *foo* | where { $_.psiscontainer } | gci