Created
          October 8, 2014 15:48 
        
      - 
      
- 
        Save tomarbuthnot/1c148a3ad09641f6313d to your computer and use it in GitHub Desktop. 
    Sort Files by Size PowerShell
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Get-ChildItem -Path c:\ -Recurse | Sort-Object Length -Descending | Select-Object length,name,directory -First 100 | Format-Table -AutoSize | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
If you paste this directly into Powershell it will crash your computer. I'd advise not using C:\ as a base path.