#Set-PnPTenantSite Office365 only: Uses the tenant API to set site information. ##Syntax
Set-PnPTenantSite [-Title <String>]
[-Sharing <Nullable`1>]
[-StorageMaximumLevel <Nullable`1>]
[-StorageWarningLevel <Nullable`1>]
[-UserCodeMaximumLevel <Nullable`1>]
[-UserCodeWarningLevel <Nullable`1>]
[-AllowSelfServiceUpgrade <Nullable`1>]
[-Owners <List`1>]
[-LockState <SiteLockState>]
[-Wait [<SwitchParameter>]]
-Url <String>
##Parameters
Parameter | Type | Required | Description |
---|---|---|---|
AllowSelfServiceUpgrade | Nullable`1 | False | Specifies if the site administrator can upgrade the site collection |
LockState | SiteLockState | False | Sets the lockstate of a site |
Owners | List`1 | False | Specifies owners to add as site collection adminstrators. Can be both users and groups. |
Sharing | Nullable`1 | False | Specifies what the sharing capablilites are for the site. Possible values: Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly |
StorageMaximumLevel | Nullable`1 | False | Specifies the storage quota for this site collection in megabytes. This value must not exceed the company's available quota. |
StorageWarningLevel | Nullable`1 | False | Specifies the warning level for the storage quota in megabytes. This value must not exceed the values set for the StorageMaximumLevel parameter |
Title | String | False | Specifies the title of the site |
Url | String | True | Specifies the URL of the site |
UserCodeMaximumLevel | Nullable`1 | False | Specifies the quota for this site collection in Sandboxed Solutions units. This value must not exceed the company's aggregate available Sandboxed Solutions quota. 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. |
UserCodeWarningLevel | Nullable`1 | False | Specifies the warning level for the resource quota. This value must not exceed the value set for the UserCodeMaximumLevel parameter |
Wait | SwitchParameter | False | Wait for the operation to complete |
##Examples |
###Example 1
PS:> Set-PnPTenantSite -Url https://contoso.sharepoint.com -Title 'Contoso Website' -Sharing Disabled
This will set the title of the site collection with the URL 'https://contoso.sharepoint.com' to 'Contoso Website' and disable sharing on this site collection.
###Example 2
PS:> Set-PnPTenantSite -Url https://contoso.sharepoint.com -Title 'Contoso Website' -StorageWarningLevel 8000 -StorageMaximumLevel 10000
This will set the title of the site collection with the URL 'https://contoso.sharepoint.com' to 'Contoso Website', set the storage warning level to 8GB and set the storage maximum level to 10GB.
###Example 3
PS:> Set-PnPTenantSite -Url https://contoso.sharepoint.com/sites/sales -Owners '[email protected]'
This will set [email protected] as a site collection owner at 'https://contoso.sharepoint.com/sites/sales'.