Dateien anzeigen aber einen Unterordner auslassen
Get-ChildItem -Recurse “C:\TestDir” | Where-Object { $_.FullName -notmatch ‘\\Test2($|\\)’ } | Where {! $_.PSIsContainer } | Select Name,FullName
Get-ChildItem -Recurse “C:\TestDir” | Where-Object { $_.FullName -notmatch ‘\\Test2($|\\)’ } | Where {! $_.PSIsContainer } | Select Name,FullName