Showing posts with label PowerShell Script to update Site Collection Storage Quota. Show all posts
Showing posts with label PowerShell Script to update Site Collection Storage Quota. Show all posts

Friday, November 30, 2018

PowerShell Script to update Site Collection Storage Quota

PowerShell Script to update SharePoint Online Site Collection Storage Quota

The Connect-SPOService cmdlet connects a SharePoint Online global administrator to the SharePoint Online Administration Center.

You must be a SharePoint Online global administrator and a site collection administrator to run the cmdlet.

Connect-SPOService -Url https://yourcompanyname-admin.sharepoint.com -credential admin@yourcompanyname.com

The Set-SPOSite cmdlet sets or updates one or more properties' values for a site collection.

Set-SPOSite -Identity https://yourcompanyname.sharepoint.com/sites/TestSiteCollection -ResourceQuota 300 -StorageQuota 10000

updates the settings of site collection https://yourcompanyname.sharepoint.com/sites/TestSiteCollection The storage quota is updated to 10000 megabytes and the resource quota is updated to 300 megabytes.