Listing all files (recursively) in PowerShell By Vampire | August 1, 2019 - 7:26 am |August 1, 2019 Code snippets, PowerShell $files = Get-ChildItem -Recurse -Path "C:\path\to\root\folder" foreach($file in $files) { if(!$file.PSIsContainer) { Write-Host $file.FullName } } Bookmark the permalink.