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-OfficePowerPointThemeName

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

Sets the PowerPoint theme name.

Remarks

Sets the PowerPoint theme name.

Examples

Authored help example

Rename the theme across the presentation.

PS>


New-OfficePowerPoint -Path .\Examples\Documents\PowerPointThemeName.pptx {
                Set-OfficePowerPointThemeName -Name 'Service Brief' -AllMasters
                Add-OfficePowerPointSlide -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Named theme'
            }
        

Applies a friendly theme name across every master before saving.

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-OfficePowerPointThemeName [-AllMasters] -Name <String> [-PassThru] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AllMasters SwitchParameter optionalposition: namedpipeline: False
Apply the name across all slide masters.
Name String requiredposition: namedpipeline: False
Theme name to apply.
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