external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Set site information.
Set-PnPTenantSite -Url <String>
[-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>]
[-NoScriptSite [<SwitchParameter>]]
[-Wait [<SwitchParameter>]]
[-Connection <SPOnlineConnection>]
Sets site properties for existing sites.
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.
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.
PS:> Set-PnPTenantSite -Url https://contoso.sharepoint.com/sites/sales -Owners "[email protected]"
This will add [email protected] as an additional site collection owner at 'https://contoso.sharepoint.com/sites/sales'.
PS:> Set-PnPTenantSite -Url https://contoso.sharepoint.com/sites/sales -Owners @("[email protected]", "[email protected]")
This will add [email protected] and [email protected] as additional site collection owners at 'https://contoso.sharepoint.com/sites/sales'.
PS:> Set-PnPTenantSite -Url https://contoso.sharepoint.com/sites/sales -NoScriptSite:$false
This will enable script support for the site 'https://contoso.sharepoint.com/sites/sales' if disabled.
Specifies if the site administrator can upgrade the site collection
Type: Nullable`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Sets the lockstate of a site
Type: SiteLockState
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies if a site allows custom script or not. See https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f for more information.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies owner(s) to add as site collection adminstrators. They will be added as additional site collection administrators. Existing administrators will stay. Can be both users and groups.
Type: List`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies what the sharing capablilites are for the site. Possible values: Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly
Type: Nullable`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies the storage quota for this site collection in megabytes. This value must not exceed the company's available quota.
Type: Nullable`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies the warning level for the storage quota in megabytes. This value must not exceed the values set for the StorageMaximumLevel parameter
Type: Nullable`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies the title of the site
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies the URL of the site
Type: String
Parameter Sets: (All)
Required: True
Position: 0
Accept pipeline input: True
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.
Type: Nullable`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies the warning level for the resource quota. This value must not exceed the value set for the UserCodeMaximumLevel parameter
Type: Nullable`1
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Wait for the operation to complete
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False