How can I count all files in a specific folder (and all subfolders) with the Powershell command Get-ChildItem? With (Get-ChildItem -recurse
(Get-ChildItem -recurse
Filter for files before counting:
(Get-ChildItem -recurse | where-object {-not ($_.PSIsContainer)}).Count