#Set-SPOMasterPage Sets the default master page of the current web. ##Syntax
Set-SPOMasterPage [-MasterPageServerRelativeUrl <String>] [-CustomMasterPageServerRelativeUrl <String>] [-Web <WebPipeBind>]Set-SPOMasterPage [-MasterPageSiteRelativeUrl <String>] [-CustomMasterPageSiteRelativeUrl <String>] [-Web <WebPipeBind>]##Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| CustomMasterPageServerRelativeUrl | String | False | |
| CustomMasterPageSiteRelativeUrl | String | False | |
| MasterPageServerRelativeUrl | String | False | |
| MasterPageSiteRelativeUrl | String | False | |
| Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
| ##Examples |
###Example 1
PS:> Set-SPOMasterPage -MasterPageServerRelativeUrl /sites/projects/_catalogs/masterpage/oslo.masterSets the master page based on a server relative URL
###Example 2
PS:> Set-SPOMasterPage -MasterPageSiteRelativeUrl _catalogs/masterpage/oslo.masterSets the master page based on a site relative URL