# Set-OfficePowerPointThemeColor

Sets one or more PowerPoint theme colors. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: PptThemeColor

**Module**

`PSWriteOffice`

**Aliases**

`PptThemeColor`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointPresentation`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointPresentation`

**Source**

[SetOfficePowerPointThemeColorCommand.cs:28](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/SetOfficePowerPointThemeColorCommand.cs#L28) 

Sets one or more PowerPoint theme colors.

## Syntax

```
Set-OfficePowerPointThemeColor
[-AllMasters]
-Color <PowerPointThemeColor>
[-Master <Int32>]
[-PassThru]
[-Presentation <PowerPointPresentation>]
-Value <String>
[<CommonParameters>]
```

[#](#method-set-officepowerpointthemecolor-switchparameter-powerpointthemecolor-int32-switchparameter-powerpointpresentation-string)

Parameter set: `Single`

```
Set-OfficePowerPointThemeColor
[-AllMasters]
-Colors <Hashtable>
[-Master <Int32>]
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

[#](#method-set-officepowerpointthemecolor-switchparameter-hashtable-int32-switchparameter-powerpointpresentation)

Parameter set: `Multiple`

## Examples

### Set a single accent color.

```powershell
Set-OfficePowerPointThemeColor -Presentation $ppt -Color Accent1 -Value '#C00000'
```

Updates Accent1 on the default master.

### Set multiple theme colors across all masters.

```powershell
Set-OfficePowerPointThemeColor -Presentation $ppt -Colors @{ Accent1 = '#C00000'; Accent2 = '#00B0F0' } -AllMasters
```

Applies multiple theme colors to every master in the presentation.

## Parameters

**-AllMasters SwitchParameter optional**

Apply the changes across all slide masters.

**-Color PowerPointThemeColor requiredsets: Single**

Theme color to update.

Possible values: `Dark1`, `Light1`, `Dark2`, `Light2`, `Accent1`, `Accent2`, `Accent3`, `Accent4`, `Accent5`, `Accent6`, `Hyperlink`, `FollowedHyperlink`

**-Master Int32 optional**

Slide master index to update when not using AllMasters.

**-PassThru SwitchParameter optional**

Emit the presentation after update.

**-Presentation PowerPointPresentation optionalpipeline: True (ByValue)**

Presentation to update (optional inside New-OfficePowerPoint).

**-Value String requiredsets: Single**

Named or hexadecimal color value.

**-Colors Hashtable requiredsets: Multiple**

Hashtable of theme color names to named or hexadecimal color values.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:1C0783B62009760AEB76C43E3DF6491A16B4ADCA14DE1CB060EB3C3E4168C898 -->
