Project

PSWriteOffice

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

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Set-OfficePowerPointThemeName

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

Sets the PowerPoint theme name.

Syntax

Set-OfficePowerPointThemeName
[-AllMasters]
-Name <String>
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Rename the theme across the presentation.

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.

Parameters

-AllMasters SwitchParameter optional
Apply the name across all slide masters.
-Name String required
Theme name to apply.
-PassThru SwitchParameter optional
Emit the presentation after update.
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)
Presentation to update (optional inside New-OfficePowerPoint).

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.