Cmdlet
Set-OfficePowerPointThemeColor
Sets one or more PowerPoint theme colors.
Syntax
Set-OfficePowerPointThemeColor
[-AllMasters]
-Color <PowerPointThemeColor>
[-Master <Int32>]
[-PassThru]
[-Presentation <PowerPointPresentation>]
-Value <String>
[<CommonParameters>]#Parameter set:
SingleSet-OfficePowerPointThemeColor
[-AllMasters]
-Colors <Hashtable>
[-Master <Int32>]
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]#Parameter set:
MultipleExamples
Set a single accent color.
Set-OfficePowerPointThemeColor -Presentation $ppt -Color Accent1 -Value '#C00000'Updates Accent1 on the default master.
Set multiple theme colors across all masters.
Set-OfficePowerPointThemeColor -Presentation $ppt -Colors @{ Accent1 = '#C00000'; Accent2 = '#00B0F0' } -AllMastersApplies multiple theme colors to every master in the presentation.
Parameters
- -AllMasters SwitchParameter
- Apply the changes across all slide masters.
- -Color PowerPointThemeColor
- Theme color to update.
- Possible values:
Dark1,Light1,Dark2,Light2,Accent1,Accent2,Accent3,Accent4,Accent5,Accent6,Hyperlink,FollowedHyperlink - -Master Int32
- Slide master index to update when not using AllMasters.
- -PassThru SwitchParameter
- Emit the presentation after update.
- -Presentation PowerPointPresentation
- Presentation to update (optional inside New-OfficePowerPoint).
- -Value String
- Named or hexadecimal color value.
- -Colors Hashtable
- 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.