You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/declarative-customization/site-theming/sharepoint-site-theming-powershell.md
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ To run the PowerShell cmdlets for theme management, you'll need to do the follow
11
11
1. Download and install the [SharePoint Online Management Shell](https://www.microsoft.com/en-us/download/details.aspx?id=35588). If you already have a previous version of the shell installed, uninstall it first and then install the latest version.
12
12
2. Follow the instructions at [Connect to SharePoint Online PowerShell](https://technet.microsoft.com/en-us/library/fp161372.aspx) to connect to your SharePoint tenant.
13
13
14
-
To verify your setup, try using the **Get-HideDefaultThemes** cmdlet to read the HideDefaultThemes setting. If the cmdlet runs and returns False with no errors, as shown in the following example, you're ready to proceed.
14
+
To verify your setup, try using the **Get-SPOHideDefaultThemes** cmdlet to read the SPOHideDefaultThemes setting. If the cmdlet runs and returns False with no errors, as shown in the following example, you're ready to proceed.
15
15
16
16
```powershell
17
-
c:\> Get-HideDefaultThemes
17
+
c:\> Get-SPOHideDefaultThemes
18
18
False
19
19
```
20
20
## Site theme cmdlets
@@ -24,8 +24,8 @@ The following cmdlets are available for managing site themes from PowerShell:
24
24
***Add-SPOTheme**— Creates a new custom theme, or overwrites an existing theme to modify its settings.
25
25
***Get-SPOTheme**— Retrieves settings for an existing theme.
26
26
***Remove-SPOTheme**— Removes a theme from the theme gallery.
27
-
***Set-HideDefaultThemes**— Specifies whether the default themes should be available.
28
-
***Get-HideDefaultThemes**— Queries the current HideDefaultThemes setting.
27
+
***Set-SPOHideDefaultThemes**— Specifies whether the default themes should be available.
28
+
***Get-SPOHideDefaultThemes**— Queries the current SPOHideDefaultThemes setting.
29
29
30
30
## Add-SPOTheme
31
31
@@ -131,32 +131,34 @@ The **Remove-SPOTheme** cmdlet removes a theme from your tenant store. For examp
131
131
```powershell
132
132
c:\> Remove-SPOTheme -Name "Custom Cyan"
133
133
```
134
-
## Set-HideDefaultThemes
134
+
## Set-SPOHideDefaultThemes
135
135
136
-
_NOTE: this cmdlet will be renamed to ```Set-SPOHideDefaultThemes``` in a future release, for consistency with other SharePoint PowerShell cmdlet._
136
+
> [!NOTE]
137
+
> this cmdlet was named as ```Set-HideDefaultThemes``` until December 2017 release of SPO Management Shell. We recommend that you'd use the latest version of the PowerShell cmdlets.
137
138
138
-
The **Set-HideDefaultThemes** cmdlet is used to specify whether the default themes that come with SharePoint should be included in the theme picker list. For example, you might want to create custom themes for your sites and then remove the default themes, to ensure that all pages will use your custom themes.
139
+
The **Set-SPOHideDefaultThemes** cmdlet is used to specify whether the default themes that come with SharePoint should be included in the theme picker list. For example, you might want to create custom themes for your sites and then remove the default themes, to ensure that all pages will use your custom themes.
139
140
140
141
Specify the setting as either _$true_ to hide the default themes, or _$false_ (the default setting) to allow use of the default themes. For example, this cmdlet hides the default themes.
141
142
142
143
```powershell
143
-
Set-HideDefaultThemes $true
144
+
Set-SPOHideDefaultThemes $true
144
145
```
145
146
After creating the "Custom Cyan" theme, hiding the default themes will leave only the one custom theme in the themes list under **Change the look**.
146
147
147
148
To restore the default themes to the theme picker list, use the following cmdlet.
148
149
```powershell
149
-
Set-HideDefaultThemes $false
150
+
Set-SPOHideDefaultThemes $false
150
151
```
151
152
152
-
## Get-HideDefaultThemes
153
+
## Get-SPOHideDefaultThemes
153
154
154
-
_NOTE: this cmdlet will be renamed to ```Get-SPOHideDefaultThemes``` in a future release, for consistency with other SharePoint PowerShell cmdlets._
155
+
> [!NOTE]
156
+
> this cmdlet was named as ```Get-HideDefaultThemes``` until December 2017 release of SPO Management Shell. We recommend that you'd use the latest version of the PowerShell cmdlets.
155
157
156
-
The **Get-HideDefaultThemes** cmdlet retrieves the currrent **Set-HideDefaultThemes** setting. You might want to use this cmdlet in a PowerShell script to read the setting and then take different actions based on whether the default themes are hidden. This cmdlet does not have any parameters.
158
+
The **Get-SPOHideDefaultThemes** cmdlet retrieves the currrent **Set-SPOHideDefaultThemes** setting. You might want to use this cmdlet in a PowerShell script to read the setting and then take different actions based on whether the default themes are hidden. This cmdlet does not have any parameters.
0 commit comments