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

Get-OfficePowerPointTheme

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

Gets theme information for a PowerPoint presentation master.

Syntax

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

Examples

Inspect the default master theme.

$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.

Parameters

-Master Int32 optional
Slide master index to inspect.
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)
Presentation to inspect (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.

Outputs

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