Script Download:GetSpecifiedFileExtension.zip
http://gallery.technet.microsoft.com/scriptcenter/Script-to-calculate-the-8e3151c3

This PowerShell script sample shows how to calculate the number of file name extensions.

Assume that you have 100,000 files that are stored within folders on a computer. When a user wants to know how many .jpg and .bmp files there are in this folder, it becomes difficult to retrieve the specified file name extensions.

image image
image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery