Are you interested in your storage space and how to check your quota?
SharePoint is essential for optimizing document management and fostering seamless team cooperation. As your reliance on SharePoint continues to grow, so does the volume of data stored and shared within your SharePoint sites.
It is important to understand and navigate the process of monitoring your SharePoint storage space, ensuring that it remains both efficient and effective.
This guide will explore various methods and techniques for checking your SharePoint storage space. You will delve into vital aspects of storage capacity and multiple approaches to gain valuable insights.
By the end of this guide, you will have the knowledge and tools to proactively oversee, manage, and enhance your SharePoint storage resources.
Check Your Storage in SharePoint Admin Centre
The ability to view detailed storage metrics within SharePoint may depend on your permission and role within your organization.
π Note: In SharePoint, each organization’s tenancy is allocated a baseline of 1 TB of storage, with an extra 10 GB of storage granted for every licensed user. As these additional allocations accumulate, you could potentially acquire up to 1 TB of extra storage when you have 100 licensed users.
Follow these steps to check storage metrics in SharePoint online from the admin centre.
- Login to your tenant Office 365 account as an admin
- Click the App launcher at the top left corner of the page.
- Click on Admin.
This will take you to the Microsoft 365 admin centre.
- Click on the Show all button on the left panel.
- Scroll down and click on SharePoint on the left panel.
This redirects you to a SharePoint admin center.
- From the home page of the SharePoint admin center, click on active sites on the left panel.
This will list all the active sites in your current tenant.
You can find the storage information at the upper right corner of the Active site page, which displays both the total storage and the amount of storage currently in use, along with the remaining storage capacity.
Additionally, the table of sites below provides a Storage used (GB) column, allowing you to filter and identify the sites that are actively using storage space.
To access the storage information for each site, you will need to navigate to each site individually from your current page.
- To go to the site of your choice, click the link from the URL column.
This will take you to the SharePoint site. Next, you will need to get to the site settings.
- Click on the gear icon at the top left corner of the page.
- A settings panel pops up, click Site information from the panel.
- Click on View all site settings from the Site information panel.
On the next page, focus your attention on the Site Collection Administration
- Click the Storage metrics link.
On the following page, you will be able to view the various folders within the site collection, including their total size and the date of their last modification.
Check Your Storage with SharePoint Online PowerShell
SharePoint Online PowerShell provides a robust and versatile way to check storage space, making it particularly suitable for administrators and power users who need to manage storage at a more granular level.
π Note: You need to have SharePoint Online Management Shell installed on your computer.
To obtain the size of a SharePoint Online site collection, PowerShell offers the Get-SPOSite cmdlet. This cmdlet not only fetches the site’s size but also provides additional details about the site collection, including its URL, owner, storage quota, and more.
Follow the steps to check storage metrics via PowerShell:
$AdminSiteURL = "https://<tenant>-admin.sharepoint.com"
$SiteURL = "https://<tenant>.sharepoint.com/sites/<team site>"
- Configure Parameter
Open PowerShell and set configuration parameters for your SharePoint environment, replace https://<tenant>-admin.sharepoint.com
and https://<tenant>sharepoint.com/sites/<tenant>
with your SharePoint Admin Centre URL and URL of the site you want to check.
After typing this on the shell, press Enter on your keyboard.
$Cred = Get-Credential
- Get Credentials
This command obtains the necessary credentials to connect to your SharePoint Admin center. After typing this command, it will prompt you for your admin username and password.
Enter these credentials and click on Enter on your keyboard.
Connect-SPOService -Url $AdminSiteURL -Credential $Cred
- Connect to SharePoint Online Admin Center
Replace AdminSiteURL with the Admin URL of your SharePoint. This command involves the use of the provided credentials to connect to the SharePoint Online Admin Center using the Connect-SPOService
cmdlet.
Click Enter
on your keyboard.
$Site = Get-SPOSite $SiteURL
- Get the site collection
Replace the SiteURL with the URL of the team site you want to check the storage metrics for. After typing this command, Click on Enter on your keyboard.
Write-Host "Allocated: " $Site.StorageQuota
Write-Host "Used: " $Site.StorageUsageCurrent
Write-Host "Warning Level: " $Site.StorageQuotaWarningLevel
- Display SharePoint Online Site Storage Metrics
This is the final command that displays the SharePoint Online siteβs storage metrics, including the allocated storage, current usage, and the warning level, using the Write-Host cmdlet.
This PowerShell retrieves the SharePoint Online site quota in MBs.
To get a site size report using the same PowerShell, this PowerShell script retrieves storage information, including the total allocated size and consumption, for all site collections in SharePoint Online.
#Config Parameters
$AdminSiteURL="https://<tenant>-admin.sharepoint.com"
$ReportOutput="C:\Temp\SPOStorage.csv"
#Get Credentials to connect to SharePoint Admin Center
$Cred = Get-Credential
#Connect to SharePoint Online Admin Center
Connect-SPOService -Url $AdminSiteURL -Credential $Cred
#Get all Site collections
$SiteCollections = Get-SPOSite -Limit All
Write-Host "Total Number of Site collections Found:"$SiteCollections.count -f Yellow
#Array to store Result
$ResultSet = @()
Foreach($Site in $SiteCollections)
{
Write-Host "Processing Site Collection :"$Site.URL -f Yellow
#Send the Result to CSV
$Result = new-object PSObject
$Result| add-member -membertype NoteProperty -name "SiteURL" -Value $Site.URL
$Result | add-member -membertype NoteProperty -name "Allocated" -Value $Site.StorageQuota
$Result | add-member -membertype NoteProperty -name "Used" -Value $Site.StorageUsageCurrent
$Result | add-member -membertype NoteProperty -name "Warning Level" -Value $site.StorageQuotaWarningLevel
$ResultSet += $Result
}
#Export Result to csv file
$ResultSet | Export-Csv $ReportOutput -notypeinformation
Write-Host "Site Quota Report Generated Successfully!" -f Green
Open PowerShell and write the commands, replace https://<tenant>-admin.sharepoint.com
with your SharePoint Online Admin Center. The report is stored in SPOStorage.csv.
Check Your Storage in Office 365 Admin Center
To check the entire storage of your SharePoint site from the Office 365 Admin Center requires administrator’s privilege. This method gives you the total SharePoint storage size.
You can follow the steps:
- Login to your Microsoft 365 environment as an administrator.
- Click on the App launcher.
- Click on Admin.
This will take you to the Microsoft 365 admin center.
- Then, click on the Show all button on the left panel.
This will expand the panel further, scroll down.
- Choose Report.
- Then click on Usage.
Scroll down till you see SharePoint Files displayed.
- Click on the View more button.
Click on Site usage.
Mouse over the points on the Storage graph to see the actual utilized storage size.
Conclusions
By proactively checking your storage metrics, you’ll not only guarantee optimal site performance but also manage resources efficiently, control costs, and adhere to compliance requirements.
Whether you choose the power and flexibility of PowerShell, the comprehensive insights from the SharePoint Admin center, or the convenience of SharePoint’s built-in reports, the end goal is the same: a SharePoint environment that operates at its best.
As you implement these methods, you’re taking a proactive step toward ensuring your SharePoint site remains a hub of productivity and collaboration.
With the ability to manage storage efficiently, you’re equipped to support your organization’s growth and success in today’s data-driven world.
Hello,
I need the same script for create alerte storage for the All tenant, not just one site, and send an email to the IT user when the storage is full when a % of alert
Thanks