How To Check Folder Size In SharePoint

Are you looking for ways to check the folder size in SharePoint? In this section, we will explore two methods that will help you efficiently manage your files in SharePoint Online.

To check the folder size in SharePoint Online, there are a few methods that can be used. One way is to navigate to the site, click on the Settings Gear, go to “Site Information,” and then click on “View all site settings.” Under the “Site Collection Administration” heading, click on “Storage Metrics.” From there, you can click on the document library where the target folder is stored to see its size.

If more complex calculations are required, PowerShell can be used. The provided PowerShell script allows users to retrieve the size of a folder and its subfolders using the SharePoint Client Side Object Model (CSOM) and PnP PowerShell. The script can be run to obtain the total size of folders and can be useful for managing storage capacity, migration planning, and identifying errors when moving or copying large folders.

For further information on PowerShell script options, visit the provided link.

Method 1: Checking Folder Size through Site Settings

One way to check the folder size in SharePoint is by utilizing the site settings. Follow these steps to access the storage metrics and find the size of your target folder:

  1. Start by navigating to the SharePoint site where the folder is located.
  2. Click on the Settings Gear icon in the top-right corner of the page.
  3. In the drop-down menu, go to “Site Information” and then click on “View all site settings.”
  4. Under the “Site Collection Administration” heading, click on “Storage Metrics.”
  5. From the displayed list, locate and click on the document library where the target folder is stored.
  6. On the “Storage Metrics” page, you will see the size of the document library, including the size of your target folder.

By following these steps, you can easily access the storage metrics and quickly check the size of any folder in SharePoint. This method provides a convenient way to manage your files and ensure efficient use of storage space.

For more advanced calculations and additional features, you may consider using PowerShell. The provided PowerShell script allows you to retrieve the size of a folder and its subfolders, providing more flexibility for managing storage capacity, planning migrations, and identifying errors during file operations.

For further information on PowerShell script options, refer to the documentation provided by Microsoft: https://docs.microsoft.com/powershell/scripting/

Method 2: Checking Folder Size using PowerShell

If you require more advanced calculations or need to manage multiple folders, you can use PowerShell to check the folder size in SharePoint. In this section, we will guide you through the process of using PowerShell scripts to retrieve folder sizes and provide valuable insights for storage management and planning.

To begin, you will need to utilize the SharePoint Client Side Object Model (CSOM) and PnP PowerShell. These tools allow you to interact with SharePoint’s underlying infrastructure and retrieve the necessary information.

The provided PowerShell script enables you to retrieve the size of a specific folder and its subfolders. This script is invaluable for managing storage capacity, planning migrations, and identifying errors during file operations.

To run the script, open the PowerShell console and ensure the CSOM and PnP PowerShell modules are installed. Once installed, you can execute the script by simply specifying the SharePoint site URL, document library name, and target folder name. The script will then calculate and display the total size of the folder, including all its subfolders.

For more information on PowerShell script options and how to customize the script to suit your specific needs, consult the provided link.

Meet the Author

Abdul Rahim has been working in Information Technology for over two decades. Learn how Abdul got his start as a Tech Blogger , and why he decided to start this Software blog. If you want to send Abdul a quick message, then visit his contact page here.