Set-SPOWeb

Configures the specified subsite.

Set-SPOWeb [-CustomMasterUrl [<String>]] [-MasterUrl [<String>]] [-Title [<String>]] [-Description [<String>]] [-EnableMinimalDownload [<Boolean>]] [-QuickLaunchEnabled [<Boolean>]] [-SaveSiteAsTemplateEnabled [<Boolean>]] [-ServerRelativeUrl [<String>]] [-SyndicationEnabled [<Boolean>]] [-TreeViewEnabled [<Boolean>]] [-UIVersion [<Int32>]] [-UIVersionConfigurationEnabled [<Boolean>]] [-AssociatedMemberGroup [<SPOGroupPipeBind>]] [-AssociatedOwnerGroup [<SPOGroupPipeBind>]] [-AssociatedVisitorGroup [<SPOGroupPipeBind>]] -Identity <SPOWebPipeBind>

Set-SPOWeb -BreakRoleInheritance <SwitchParameter> [-CopyRoleAssignments [<SwitchParameter>]] [-ClearScopes [<SwitchParameter>]] -Identity <SPOWebPipeBind>

Set-SPOWeb -ResetRoleInheritance <SwitchParameter> -Identity <SPOWebPipeBind>

Parameters

1

ParameterRequiredTypeDescription
CustomMasterUrlFalseString

Sets the URL for a custom master page file to apply to the Site.

MasterUrlFalseString

Sets the URL of the master page that is used for the Site.

TitleFalseString

Specifies the new title of the Site.

DescriptionFalseString

Specifies the new description of the Site.

EnableMinimalDownloadFalseBoolean

Sets a Boolean value that specifies whether the Site should use Minimal Download Strategy.

QuickLaunchEnabledFalseBoolean

Sets a value that specifies whether the Quick Launch area is enabled on the Site.

SaveSiteAsTemplateEnabledFalseBoolean

Sets a Boolean value that specifies whether the Site can be saved as a Site template.

ServerRelativeUrlFalseString

Specifies the new relative URL for the Site. This is the URL path after the site collection URL.

SyndicationEnabledFalseBoolean

Sets a Boolean value that specifies whether the RSS feeds are enabled on the Site.

TreeViewEnabledFalseBoolean

Sets a Boolean value that specifies whether the tree view is enabled on the Site.

UIVersionFalseInt32

Sets the user interface (UI) version of the Site.

UIVersionConfigurationEnabledFalseBoolean

Sets a Boolean value that specifies whether the settings UI for visual upgrade is shown or hidden.

AssociatedMemberGroupFalseSPOGroupPipeBind

Sets the associated member group of the Site.

AssociatedOwnerGroupFalseSPOGroupPipeBind

Sets the associated owner group of the Site.

AssociatedVisitorGroupFalseSPOGroupPipeBind

Sets the associated visitor group of the Site.

IdentityTrueSPOWebPipeBind

Specifies the identity of the Site to update.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the SIte ID.

2

ParameterRequiredTypeDescription
BreakRoleInheritanceTrueSwitchParameter

Creates unique role assignments for the Site.

CopyRoleAssignmentsFalseSwitchParameter

Specifies whether to copy the role assignments from the parent Site.

ClearScopesFalseSwitchParameter

The role assignments for all child Sites in the current Site and in the Sites which inherit role assignments from the current Site must be cleared and those Sites will inherit role assignments from the current Site after this call.

IdentityTrueSPOWebPipeBind

Specifies the identity of the Site to update.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the SIte ID.

3

ParameterRequiredTypeDescription
ResetRoleInheritanceTrueSwitchParameter

Resets the role inheritance for the Site and inherits role assignments from the parent Site.

IdentityTrueSPOWebPipeBind

Specifies the identity of the Site to update.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the SIte ID.

Detailed Description

The Set-SPOWeb cmdlet configures the subsite specified by the Identity parameter. Settings for any parameters that are not provided are not changed.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE 1-----------------------

PS C:\> Set-SPOWeb -Identity "/childsite" -BreakRoleInheritance -CopyRoleAssignments

This example breaks permissions inheritance for /childsite and copies the parents permissions to the Site.

------------------EXAMPLE 2-----------------------

PS C:\> Set-SPOWeb -Identity "/" -CustomMasterUrl "/_catalogs/masterpage/seattle.master"

This example sets the master page of the root Site of a Site Collection to seattle.master.