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

Get-OfficePowerPointTheme

Aliases: PptTheme
Namespace PSWriteOffice
Aliases
PptTheme
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
PSWriteOffice.Services.PowerPoint.PowerPointThemeInfo

Gets theme information for a PowerPoint presentation master.

Remarks

Gets theme information for a PowerPoint presentation master.

Examples

Authored help example

Inspect the default master theme.

PS>


$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointThemeRead.pptx -NoSave
            Set-OfficePowerPointThemeName -Presentation $ppt -Name 'Service Brief'
            Set-OfficePowerPointThemeFonts -Presentation $ppt -MajorLatin 'Aptos Display' -MinorLatin 'Aptos'
            Get-OfficePowerPointTheme -Presentation $ppt | Select-Object Name, Master
            $ppt | Close-OfficePowerPoint
        

Returns theme information after updating the deck theme metadata.

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

Get-OfficePowerPointTheme [-Master <Int32>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Master Int32 optionalposition: namedpipeline: False
Slide master index to inspect.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to inspect (optional inside New-OfficePowerPoint).

Outputs

PSWriteOffice.Services.PowerPoint.PowerPointThemeInfo: Describes a PowerPoint theme for a single slide master.