PowerShell Script for Large Files and Folders

I’d like to add an on demand PS task to a ‘Disk Usage’ perspective for a Logical Disk so that it shows what the largest files and folders are on that disk. I’ve had a good scour round for a suitable script, but not found anything quite right (or that I could get to work ?).

Has anyone done something similar that they could share, or can point me to a handy repository of scripts?

2 Likes

HI!
Take a look at this:

http://robwillis.info/2014/07/powershell-script-find-the-25-largest-files-and-list-folder-sizes-for-any-drive/

https://blogs.technet.microsoft.com/heyscriptingguy/2012/05/25/getting-directory-sizes-in-powershell/

2 Likes