Locating files with a specific size in SharePoint

Locating large files in a large SharePoint environment can be a tiresome job. This week, I was asked to find out how many images were uploaded which are larger than 500Kb.

Doing this with PowerShell is fairly easy.

This script can be adapted easily to find other types of files by changing the following line: