buhfur

For all things in my brain

View on GitHub

Windows 10 notes

Managing files

List 10 largest files for C:\ in megabytes

Get-ChildItem c:\ -r -ErrorAction SilentlyContinue –Force |sort -descending -property length | select -first 10 name, DirectoryName, @{Name="MB";Expression={[Math]::round($_.length / 1MB, 2)}}