Finding Larges Files on Drive Using Powershell
Recently a colleague of mine was having issues with low drive space on one of our servers. Because this is a clients system i am unable to copy over WinDirStat which is what i would usually use to determine what is eating up all the drive space. Instead I ended up using PowerShell to show me to top files which were eating up space.
dir -path c:\ -rec -ErrorAction SilentlyContinue | sort -desc Length | select -first 20