kwizcom banner advertisement

SharePoint Online: Change Storage Quota of Site Collection using PowerShell

Requirement: Increase storage quota in SharePoint Online

How to set the storage quota of a site collection in SharePoint Online:
To set storage quota of SharePoint site collection, Follow these steps:
  • Login to your SharePoint Online Admin Center (https://tenant-admin.sharepoint.com)
  • Click on "Site Collections" link in left navigation. From the available site collections, Select the target site collection to change storage quota
  • Click on "Storage Quota" button from the ribbon. 
    sharepoint online change storage quota
  • From the storage quota page, enter the new quota for your site collection. You can optionally enable Email notification to the site administrators when storage reaches particular threshold.
    sharepoint online set storage quota
  • Click on "Save" to commit apply new storage quota to your SharePoint Online site.

How to Change storage quota using PowerShell in SharePoint Online ?
To set storage quota in SharePoint Online, use: Set-SPOSite cmdlet. Here is how:

Step 1: Connect to SharePoint Online
$AdminURL="https://crescent-admin.sharepoint.com"
Connect-SPOService -URL $AdminURL -Credentials (Get-Credential) 

Step 2: Change storage quota with Set-SPOSite cmdlet.
$SiteURL="https://crescent.sharepoint.com/sites/marketing"
#Set Storage Quota
Set-SPOSite -Identity $SiteURL -StorageQuota 2000
It takes a while to execute, and you can verify the new stroage quota from Admin site.
sharepoint online increase storage quota powershell
How to Increase Storage quota for all site collections?
#Get all the site collection
$AllSites = Get-SPOSite -Limit All

#Set Storage quota for each site collection
Foreach ($Site in $AllSites)
{
 Set-SPOSite -Identity $Site.URL -StorageQuota 10000 -StorageQuotaWarningLevel 8000
}
SharePoint Online: Change Storage Quota of Site Collection using PowerShell SharePoint Online: Change Storage Quota of Site Collection using PowerShell Reviewed by Salaudeen Rajack on January 25, 2017 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.