Forum Discussion
Nov 21, 2017
Setting quotas for existing site collection in SharePoint Online
Hi ,
I have a requirement where I need to change the site quota for all the existing SharePoint Online sites to 50 GB . Is there a power shell script that can help me to achieve this for all the site collections in my tenant ? I checked the below Powershell command but this can be used only for one site collection whereas my requirement is to do this for all the existing site collections in the tenant .Please let me know .
Set-SPOSite -Identity https://contoso.sharepoint.com -StorageQuota 3000 -StorageQuotaWarningLevel 2000
and it
2 Replies
Simply get the list via Get-SPOSite and pipe it to the Set-SPOSite cmdlet. As the cmdlet is now returning Group/Team sites as well, you might want to use a CSV file as the input instead.
- Here you are...just after some quick googling: http://sharepointjack.com/2015/script-for-auto-adjusting-site-quotas-in-sharepoint-online-o365-based-on-current-useage/