Forum Discussion
How to find files over certain limit in SharePoint Library with hundreds of folders
It's not possible to add the file size to the library column as I would have to open every possible folder and our hierarchy is crazy. We are not at our limit, however, I know that many users are uploading large attachments and not overriding with newer versions so we are using way more than we need.
I know storage metrics shows total size, however, we still have to spend hours opening every single folder > subfolder > subfolder > subfolder then back etc.
I checked the Audit Log Search but there isn't anything for Search. We do not use OneDrive client for this library as there are too many files to support it.
There must be a way?
15 Replies
- Paul_HK_de_JongIron Contributor
luvsql
Have you considered using PowerShell scripts to harvest the information of interest? e.g. get a complete list of all documents and their properties in a document library.
Another option is to look for a reporting tool. There are apps that provide this capability (e.g. https://www.slimapplications.com/wp-content/uploads/2020/07/Encrypted-Documents.jpg) plus more. For example, find encrypted documents, checked-out documents, documents with versions consuming storage space, ...
Paul- luvsqlIron Contributor
Thank you all for the suggestions. I shall try them out. My experience with Powershell is copying and pasting existing scripts so not sure I could figure out how to do that.
- Dorje-McKinnonIron Contributor
Hi luvsql
You could also create a new View within the library, Save All Items as File Size.
Then edit the properties of this new view to be as follows
- Columns
- Tick to display File Size
- Sort
- First sort by the column , change to File Size
- Choose : Show items in descending order
- Folders
- Show all items without folders
This view will then show your biggest files at the top of the list.
To show files over a certain size, you would have to add a calculated column I think.
- luvsqlIron Contributor
Dorje-McKinnon I just get the "something went wrong" after saving the new view. I think we have too many files. Anytime I try and use that File Size column it craps out.
- This will happen if the view returns more than 5000 items. Try adding a filter to the view to reduce the number of results - https://support.microsoft.com/en-us/office/use-filtering-to-modify-a-sharepoint-view-3d8efc52-0808-4731-8f9b-3dfaeacea3d4
- Columns
Hi Mercedes,
In Site Settings > Storage Metrics you can see the size of each library and clicking through to folders to see where large folders are.