$files = Get-ChildItem -Recurse -Path "C:\path\to\root\folder"
foreach($file in $files)
{
if(!$file.PSIsContainer)
{
Write-Host $file.FullName
}
}
Listing all files (recursively) in PowerShell
Bookmark the permalink.