[POWERSHELL] Afficher les fichiers modifiés par date
$ErrorActionPreference = « silentlycontinue » $lastPath = « » $pathColor = « Green » $fileNameColor = « Cyan » Get-ChildItem -Path « C:\ » -Recurse -File | Where-Object {$_.LastWriteTime -gt (Get-Date).AddMonths(-3)} | Sort-Object LastWriteTime -Descending | ForEach-Object { $currentPath = Split-Path $_.FullName -Parent $fileName = Split-Path $_.FullName -Leaf $modificationDate = $_.LastWriteTime.ToString(« yyyy-MM-dd HH:mm ») if ($currentPath -ne $lastPath) { $lastPath =…