Get-ChildItem -Path C:\ -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Length -gt 100MB } | Sort-Object Length -Descending | Select-Object @{Name='FullName'; Expression={$_.FullName}}, @{Name='Size (MB)'; Expression={[math]::Round($_.Length / 1MB, 2)}} | Format-Table -AutoSize FullName Size (MB) -------- ---------- C:\some\path\to\largefile1.ext 123.45 C:\another\path\to\largefile2.ext 110.98
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter