Export (0) Print
Expand All

Set-SPOSite

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2014-04-21

Sets or updates one or more properties' values for a site collection.

Set-SPOSite [-AllowSelfServiceUpgrade <$true | $false>] [-DenyAddAndCustomizePages <$true | $false>] [-LocaleId <UInt32>] [-LockState <String>] [-NoWait <SwitchParameter>] [-Owner <String>] [-ResourceQuota <Double>] [-ResourceQuotaWarningLevel <Double>] [-SharingCapability <Disabled | ExternalUserSharingOnly | ExternalUserAndGuestSharing>] [-StorageQuota <Int64>] [-StorageQuotaWarningLevel <Int64>] [-Title <String>] <COMMON PARAMETERS>
Set-SPOSite -EnablePWA <$true | $false> <COMMON PARAMETERS>
COMMON PARAMETERS: -Identity <SpoSitePipeBind>

--------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.

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.

 

Parameter Required Type Description

EnablePWA

Required

System.Boolean

Determines whether site can include Project Web App. For more information about Project Web App ,see Plan SharePoint groups in Project Server 2013.

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.

DenyAddAndCustomizePages

Optional

System.Boolean

Determines whether the Add And Customize Pages right is denied on the site collection. For more information about permission levels, see User permissions and permission levels in SharePoint 2013.

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.

SharingCapability

Optional

Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities

Determines what level of sharing is available for the site. The possible values are: Disabled – external user sharing (share by email) and guest link sharing are both disabled, ExternalUserSharingOnly – external user sharing (share by email) is enabled, but guest link sharing is disabled, or ExternalUserAndGuestSharing - external user sharing (share by email) and guest link sharing are both enabled.

For more information about sharing, see . Manage external sharing for your SharePoint online environment.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft