$folders = Get-Content -Path "./asurveiller.txt" foreach ($folder in $folders) { $fichiers = Get-ChildItem -Path $folder -Recurse -File foreach ($fic in $fichiers) { $hash = Get-FileHash -Path $fic.FullName -Algorithm SHA256 Add-Content -Path "./resultat.txt" -Value "$($hash.Hash) $($fic.FullName)" } }