Set-SPOSite
Published: July 16, 2012
Applies to: Office 365 | SharePoint Online
Sets or updates one or more properties' values for a site collection.
Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <$true | $false>] [-LocaleId <UInt32>] [-LockState <String>] [-NoWait <SwitchParameter>] [-Owner <String>] [-ResourceQuota <Double>] [-ResourceQuotaWarningLevel <Double>] [-StorageQuota <Int64>] [-StorageQuotaWarningLevel <Int64>] [-Title <String>]
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| Identity | Required | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind | Specifies the URL of the site collection to update. |
| AllowSelfServiceUpgrade | Optional | System.Boolean | Determines whether site collection administrators can upgrade their site collections. |
| LocaleId | Optional | System.UInt32 | Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft (http://go.microsoft.com/fwlink/p/?LinkId=242911). |
| LockState | Optional | System.String | Sets the lock state on a site. Valid values are: NoAccess and Unlock. When the lock state of a site is NoAccess, all traffic to the site will be blocked. If parameter NoAccessRedirectUrl in the Set-SPOTenant cmdlet is set, traffic to sites that have a lock state NoAccess will be redirected to that URL. If parameter NoAccessRedirectUrl is not set, a 403 error will be returned. |
| NoWait | Optional | System.Management.Automation.SwitchParameter | Specifies to continue executing script immediately. |
| Owner | Optional | System.String | Specifies the owner of the site collection. |
| ResourceQuota | Optional | System.Double | Specifies the resource quota in megabytes of the site collection. The default value is 0. For more information, see Resource Usage Limits on Sandboxed Solutions in SharePoint 2010 (http://msdn.microsoft.com/en-us/library/gg615462.aspx). |
| ResourceQuotaWarningLevel | Optional | System.Double | Specifies the warning level in megabytes of the site collection to warn the site collection administrator that the site is approaching the resource quota. |
| StorageQuota | Optional | System.Int64 | Specifies the storage quota in megabytes of the site collection. |
| StorageQuotaWarningLevel | Optional | System.Int64 | Specifies the warning level in megabytes of the site collection to warn the site collection administrator that the site is approaching the storage quota. |
| Title | Optional | System.String | Specifies the title of the site collection. |
Detailed Description
For any parameters that are passed in, the Set-SPOSite cmdlet sets or updates the setting for the site collection identified by parameter Identity.
You must be a SharePoint Online global administrator and a site collection administrator to run the cmdlet.
Input Types
Return Types
--------EXAMPLE 1--------
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner joe.healy@contoso.com -NoWait
Example 1 updates the owner of site collection https://contoso.sharepoint.com/sites/site1 to the person whose email address is joe.healy@contoso.com. This cmdlet is executed immediately without delay.
--------EXAMPLE 2--------
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -ResourceQuota 0 -StorageQuota 15000
Example 2 updates the settings of site collection https://contoso.sharepoint.com/sites/site1. The storage quota is updated to 15000 megabytes and the resource quota is updated to 0 megabytes.
--------EXAMPLE 3--------
Set-SPOSite -Identity https://contoso.sharepoint.com -StorageQuota 3000 -StorageQuotaWarningLevel 2000
This example updates the settings of site collection https://contoso.sharepoint.com. The storage quota is updated to 3000 megabytes and the storage quota warning level is updated to 2000 megabytes.
Change History
| Date | Description |
|---|---|
| July 16, 2012 | Initial publication |
