Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Powershell script to list number of files by type on a drive.

Need Powershell script or anyway to list number of files by type on a drive or folder. The files are on a 2012 box.
0
roosterup
Asked:
roosterup
1 Solution
 
becraigCommented:
I was thinking of writing something but it seems it's already been done:
http://tomvangaever.be/blogv2/2013/04/count-files-by-extension-in-a-given-directory-by-powershell/

Give it a go and let me know.
0
 
footechCommented:
I would grab a copy of TreeSize Professional (I don't believe the free version includes this functionality).  There's a trial available.
http://www.jam-software.com/treesize_personal/comparison.shtml
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now