Skip to content

Commit be89bf4

Browse files
author
Rongqi Zhou
committed
add includeGlobalTheme
1 parent cc6aede commit be89bf4

File tree

1 file changed

+22
-2
lines changed
  • sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell

1 file changed

+22
-2
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This cmdlet returns the settings for a named existing theme, or for all uploaded
3636
This example shows how to use the [**Get-SPOTheme**](./Get-SPOTheme.md) cmdlet to return the settings for the `"Custom Cyan"` theme created in the example for the [**Add-SPOTheme**](./Add-SPOTheme.md) cmdlet. Note that this example uses the PowerShell `ConvertTo-Json` filter to display the theme in JSON format.
3737

3838
```powershell
39-
Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json -Depth 4
39+
Get-SPOTheme -Name "Custom Cyan" -IncludeGlobalTheme | ConvertTo-Json -Depth 4
4040
```
4141

4242
```Output
@@ -96,7 +96,7 @@ If the theme is in legacy format, the output will be:
9696
To return all uploaded themes, use the [**Get-SPOTheme**](./Get-SPOTheme.md) command with no arguments.
9797

9898
```powershell
99-
Get-SPOTheme
99+
Get-SPOTheme -IncludeGlobalTheme
100100
```
101101

102102
## PARAMETERS
@@ -119,6 +119,26 @@ Accept pipeline input: True (ByValue)
119119
Accept wildcard characters: False
120120
```
121121
122+
### -IncludeGlobalTheme
123+
124+
> Applicable: SharePoint Online
125+
126+
When specified, Get-SPOTheme returns all global themes that are available to the tenant. This includes themes created by using PowerShell as well as themes created in the Brand Center.
127+
128+
For satellite geos, IncludeGlobalTheme also returns the global themes that are defined in the primary geo.
129+
130+
```yaml
131+
Type: SwitchParameter
132+
Parameter Sets: (All)
133+
Aliases:
134+
135+
Required: False
136+
Position: Named
137+
Default value: None
138+
Accept pipeline input: False
139+
Accept wildcard characters: False
140+
```
141+
122142
### CommonParameters
123143
124144
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

0 commit comments

Comments
 (0)