Skip to content

Commit e3e7af3

Browse files
committed
Changed command to cmdlet.
1 parent 5bb31aa commit e3e7af3

File tree

6 files changed

+26
-32
lines changed

6 files changed

+26
-32
lines changed

docs/declarative-customization/site-theming/sharepoint-site-theming-csom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ __Return type:__ ClientResult<bool>
166166

167167
* [SharePoint site theming overview](sharepoint-site-theming-overview.md)
168168
* [SharePoint site theming: JSON schema](sharepoint-site-theming-json-schema.md)
169-
* [SharePoint site theming: PowerShell commands](sharepoint-site-theming-powershell.md)
169+
* [SharePoint site theming: PowerShell cmdlets](sharepoint-site-theming-powershell.md)
170170
* [SharePoint site theming: REST API](sharepoint-site-theming-rest-api.md)
171171
* [Using the Client Object Model](https://msdn.microsoft.com/en-us/library/ff798388.aspx)
172172
* [Common Programming Tasks in the Managed Client Object Model](https://msdn.microsoft.com/en-us/library/ee537013.aspx)

docs/declarative-customization/site-theming/sharepoint-site-theming-json-schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The new [SharePoint site theming](sharepoint-site-theming-overview.md) features use a JSON schema to store color settings and other information about each theme. Theme settings are stored in a JSON object that contains the following keys:
44

5-
* __name__ &mdash; The name of the theme, which appears in the theme picker UI and is also used by administrators and developers to refer to the theme in PowerShell commands or calls to the SharePoint REST API.
5+
* __name__ &mdash; The name of the theme, which appears in the theme picker UI and is also used by administrators and developers to refer to the theme in PowerShell cmdlets or calls to the SharePoint REST API.
66
* __isInverted__ &mdash; This value should be false for light themes and true for dark themes; it controls whether SharePoint will use dark or light theme colors to render text on colored backgrounds.
77
* __backgroundImageUril__ &mdash; The URI of an optional background image for the theme (value can be blank if no background image).
88
* __theme__ &mdash; The RGB color settings for the theme, stored as a nested JSON object with the following keys:
@@ -376,6 +376,6 @@ The following code shows how to define a dictionary in PowerShell for the Dark B
376376
## See also
377377

378378
* [SharePoint site theming overview](sharepoint-site-theming-overview.md)
379-
* [SharePoint site theming: PowerShell commands](sharepoint-site-theming-powershell.md)
379+
* [SharePoint site theming: PowerShell cmdlets](sharepoint-site-theming-powershell.md)
380380
* [SharePoint site theming: CSOM](sharepoint-site-theming-csom.md)
381381
* [SharePoint site theming: REST API](sharepoint-site-theming-rest-api.md)

docs/declarative-customization/site-theming/sharepoint-site-theming-overview.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ SharePoint site owners have new options for applying custom styles and colors to
66
* A simplified set of default themes, with six light themes and two dark themes presently available.
77
* Control over which themes are available for use on pages within your sites. For example, you can define custom themes based on your organization's branding or identity, and make those the only available themes within your sites.
88

9-
<!-- Global: We should refer to PowerShell "cmdlets" instead of "commands", to be consistent with the admin docs on TechNet. -->
10-
11-
These capabilities are available to administrators via [PowerShell commands](sharepoint-site-theming-powershell.md), and to developers via the SharePoint [Client Side Object Model (CSOM)](sharepoint-site-theming-csom.md) or the SharePoint [REST API](sharepoint-site-theming-rest-api.md).
9+
These capabilities are available to administrators via [PowerShell cmdlets](sharepoint-site-theming-powershell.md), and to developers via the SharePoint [Client Side Object Model (CSOM)](sharepoint-site-theming-csom.md) or the SharePoint [REST API](sharepoint-site-theming-rest-api.md).
1210

1311
For general information about working with themes to customize the look of your sites, see [Change the look of your SharePoint site](https://support.office.com/en-us/article/Change-the-look-of-your-SharePoint-site-06bbadc3-6b04-4a60-9d14-894f6a170818).
1412

@@ -54,6 +52,6 @@ For the simplest experience, we recommend that you use modern themes with modern
5452
## See also
5553

5654
* [SharePoint site theming: JSON schema](sharepoint-site-theming-json-schema.md)
57-
* [SharePoint site theming: PowerShell commands](sharepoint-site-theming-powershell.md)
55+
* [SharePoint site theming: PowerShell cmdlets](sharepoint-site-theming-powershell.md)
5856
* [SharePoint site theming: CSOM](sharepoint-site-theming-csom.md)
5957
* [SharePoint site theming: REST API](sharepoint-site-theming-rest-api.md)

docs/declarative-customization/site-theming/sharepoint-site-theming-powershell.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
# SharePoint site theming: PowerShell commands
1+
# SharePoint site theming: PowerShell cmdlets
22

3-
<!-- Global: We should refer to PowerShell "cmdlets" instead of "commands", to be consistent with the admin docs on TechNet. -->
4-
5-
SharePoint tenant administrators can use PowerShell commands to create, retrieve, and remove site themes. Developers can also use the SharePoint [REST API](sharepoint-site-theming-rest-api.md) to handle theme management tasks.
3+
SharePoint tenant administrators can use PowerShell cmdlets to create, retrieve, and remove site themes. Developers can also use the SharePoint [REST API](sharepoint-site-theming-rest-api.md) to handle theme management tasks.
64

75
For information about how themes are defined and stored, see [JSON schema reference](sharepoint-site-theming-json-schema.md).
86

97
## Getting started
108

11-
To run the PowerShell commands for theme management, you'll need to download and install the SharePoint Online Management Shell, and then connect to your SharePoint tenant from within the shell:
9+
To run the PowerShell cmdlets for theme management, you'll need to do the following:
1210

1311
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.
14-
2. After the shell is installed, follow the instructions at [Connect to SharePoint Online PowerShell](https://technet.microsoft.com/en-us/library/fp161372.aspx) to connect to your SharePoint tenant.
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.
1513

16-
To verify your setup, try using the **Get-HideDefaultThemes** command to read the HideDefaultThemes setting. If the command 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-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.
1715

1816
```powershell
1917
c:\> Get-HideDefaultThemes
2018
False
2119
```
22-
## Site theme commands
20+
## Site theme cmdlets
2321

24-
The following commands are available for managing site themes from PowerShell:
22+
The following cmdlets are available for managing site themes from PowerShell:
2523

2624
* **Add-SPOTheme** &mdash; Creates a new custom theme, or overwrites an existing theme to modify its settings.
2725
* **Get-SPOTheme** &mdash; Retrieves settings for an existing theme.
@@ -31,7 +29,7 @@ The following commands are available for managing site themes from PowerShell:
3129

3230
## Add-SPOTheme
3331

34-
The **Add-SPOTheme** command creates a new theme or updates an existing theme. The color pallette settings are passed as a dictionary.
32+
The **Add-SPOTheme** cmdlet creates a new theme or updates an existing theme. The color pallette settings are passed as a dictionary.
3533

3634
In the following example, a new theme named "Custom Cyan" is created, with color pallette settings that are various shades of cyan. Note that this example uses a ```HashToDictionary``` function to convert a hash table created with the ```@{}``` notation into a dictionary, as required by **Add-SPOTheme**.
3735

@@ -77,7 +75,7 @@ $themepallette = HashToDictionary(
7775
7876
Add-SPOTheme -Name "Custom Cyan" -Palette $themepallette -IsInverted $false
7977
```
80-
If you want to update an existing theme (to modify some of its color settings, for example), use the same syntax as shown previously but add the *-Overwrite* flag to the **Add-SPOTheme** command.
78+
If you want to update an existing theme (to modify some of its color settings, for example), use the same syntax as shown previously but add the *-Overwrite* flag to the **Add-SPOTheme** cmdlet.
8179

8280
```powershell
8381
Add-SPOTheme -Name "Custom Cyan" -Palette $themepallette -IsInverted $false -Overwrite
@@ -86,7 +84,7 @@ Adding a theme does not apply the theme to any sites. It adds the theme to your
8684

8785
## Get-SPOTheme
8886

89-
The **Get-SPOTheme** command returns the settings for an existing theme. For example, here's how to use the **Get-SPOTheme** command to return the settings for the "Custom Cyan" theme created in the previous example.
87+
The **Get-SPOTheme** cmdlet returns the settings for an existing theme. For example, here's how to use the **Get-SPOTheme** cmdlet to return the settings for the "Custom Cyan" theme created in the previous example.
9088

9189
```powershell
9290
C:\> Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json
@@ -142,19 +140,18 @@ Custom Cyan
142140
```
143141
## Remove-SPOTheme
144142

145-
The **Remove-SPOTheme** command removes a theme from your tenant store. For example, this command removes the "Custom Cyan" theme that was used in the previous examples.
143+
The **Remove-SPOTheme** cmdlet removes a theme from your tenant store. For example, this cmdlet removes the "Custom Cyan" theme that was used in the previous examples.
146144

147145
```powershell
148146
c:\> Remove-SPOTheme -Name "Custom Cyan"
149147
```
150148
## Set-HideDefaultThemes
151149

152-
>[!NOTE]
153-
>This command will be renamed to ```Set-SPOHideDefaultThemes``` in a future release, for consistency with other SharePoint PowerShell commands.
150+
_NOTE: this cmdlet will be renamed to ```Set-SPOHideDefaultThemes``` in a future release, for consistency with other SharePoint PowerShell cmdlet._
154151

155-
The **Set-HideDefaultThemes** command 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.
152+
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.
156153

157-
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 command hides the default themes.
154+
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.
158155

159156
```powershell
160157
Set-HideDefaultThemes $true
@@ -163,17 +160,16 @@ After creating the "Custom Cyan" theme, hiding the default themes will leave onl
163160

164161
![Change the look box with default themes hidden and the custom Cyan theme shown](../../images/theme-hidedefaults.png)
165162

166-
To restore the default themes to the theme picker list, use the following command.
163+
To restore the default themes to the theme picker list, use the following cmdlet.
167164
```powershell
168165
Set-HideDefaultThemes $false
169166
```
170167

171168
## Get-HideDefaultThemes
172169

173-
>[!NOTE]
174-
>This command will be renamed to ```Get-SPOHideDefaultThemes``` in a future release, for consistency with other SharePoint PowerShell commands.
170+
_NOTE: this cmdlet will be renamed to ```Get-SPOHideDefaultThemes``` in a future release, for consistency with other SharePoint PowerShell cmdlets._
175171

176-
The **Get-HideDefaultThemes** command retrieves the currrent **Set-HideDefaultThemes** setting. You might want to use this command in a PowerShell script to read the setting and then take different actions based on whether the default themes are hidden. This command does not have any parameters.
172+
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.
177173

178174
```powershell
179175
c:\> Get-HideDefaultThemes

docs/declarative-customization/site-theming/sharepoint-site-theming-rest-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Before you get started, make sure that you're familiar with the following:
1313

1414
The following REST commands are available for working with site themes:
1515

16-
* __AddTenantTheme__ &mdash; create a new theme; similar to the Add-SPOTheme SharePoint command
17-
* __RemoveTenantTheme__ &mdash; remove a theme from the tenant store; similar to the Remove-SPOTheme PowerShell command
16+
* __AddTenantTheme__ &mdash; create a new theme; similar to the Add-SPOTheme SharePoint cmdlet
17+
* __RemoveTenantTheme__ &mdash; remove a theme from the tenant store; similar to the Remove-SPOTheme PowerShell cmdlet
1818
* __GetTenantThemingOptions__ &mdash; read theme settings
1919

2020
The URL for theme management REST commands is based on _api/thememanager. For example, the following are the endpoints for the commands:
@@ -129,7 +129,7 @@ RestRequest("/_api/thememanager/GetTenantThemingOptions");
129129

130130
* [SharePoint site theming overview](sharepoint-site-theming-overview.md)
131131
* [SharePoint site theming: JSON schema](sharepoint-site-theming-json-schema.md)
132-
* [SharePoint site theming: PowerShell commands](sharepoint-site-theming-powershell.md)
132+
* [SharePoint site theming: PowerShell cmdlets](sharepoint-site-theming-powershell.md)
133133
* [SharePoint site theming: CSOM](sharepoint-site-theming-csom.md)
134134
* [Complete basic operations using SharePoint REST endpoints](https://dev.office.com/sharepoint/docs/apis/rest/complete-basic-operations-using-sharepoint-rest-endpoints.md)
135135
* [Making REST calls with C# and JavaScript for SharePoint 2013](http://www.microsoft.com/resources/msdn/en-us/office/media/video/video.mdl?cid=sdc&from=mscomsdc&VideoID=4e4cc094-ff69-405b-852f-2ac7c41293c5)

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
href: declarative-customization/site-theming/sharepoint-site-theming-overview.md
185185
- name: JSON schema reference
186186
href: declarative-customization/site-theming/sharepoint-site-theming-json-schema.md
187-
- name: PowerShell commands
187+
- name: PowerShell cmdlets
188188
href: declarative-customization/site-theming/sharepoint-site-theming-powershell.md
189189
- name: REST API
190190
href: declarative-customization/site-theming/sharepoint-site-theming-rest-api.md

0 commit comments

Comments
 (0)