PS> get-childitem -Path "H:\MyPath" -recurse | ? { $_.GetType().Name -eq "FileInfo" } | where-Object {$_.Length -gt 134217728}| sort-Object -property length -Descending | export-csv -path "S:\LargeHFiles.csv"
134217728 is bytes, so 134217728/1024/1024 = 128Mb
No comments:
Post a Comment