Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Set-OfficePowerPointThemeColor

Aliases: PptThemeColor
Namespace PSWriteOffice
Aliases
PptThemeColor
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointPresentation

Sets one or more PowerPoint theme colors.

Remarks

Sets one or more PowerPoint theme colors.

Examples

Authored help example

Set a single accent color.

PS>


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

Updates Accent1 on the default master.

Set multiple theme colors across all masters.

PS>


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

Applies multiple theme colors to every master in the presentation.

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.

Syntax

Set-OfficePowerPointThemeColor [-AllMasters] -Color <Dark1> [-Master <Int32>] [-PassThru] [-Presentation <PowerPointPresentation>] -Value <String> [<CommonParameters>]
#
Parameter set: Single

Parameters

AllMasters SwitchParameter optionalposition: namedpipeline: False
Apply the changes across all slide masters.
Color PowerPointThemeColor requiredposition: namedpipeline: Falsevalues: 12
Theme color to update.
Possible values: Dark1, Light1, Dark2, Light2, Accent1, Accent2, Accent3, Accent4, Accent5, Accent6, Hyperlink, FollowedHyperlink
Master Int32 optionalposition: namedpipeline: False
Slide master index to update when not using AllMasters.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the presentation after update.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update (optional inside New-OfficePowerPoint).
Value String requiredposition: namedpipeline: False
Named or hexadecimal color value.

Outputs

OfficeIMO.PowerPoint.PowerPointPresentation

Set-OfficePowerPointThemeColor [-AllMasters] -Colors <Hashtable> [-Master <Int32>] [-PassThru] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: Multiple

Parameters

AllMasters SwitchParameter optionalposition: namedpipeline: False
Apply the changes across all slide masters.
Colors Hashtable requiredposition: namedpipeline: False
Hashtable of theme color names to named or hexadecimal color values.
Master Int32 optionalposition: namedpipeline: False
Slide master index to update when not using AllMasters.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the presentation after update.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update (optional inside New-OfficePowerPoint).

Outputs

OfficeIMO.PowerPoint.PowerPointPresentation