Cmdlet
Get-OfficePowerPointTheme
Gets theme information for a PowerPoint presentation master.
Syntax
Get-OfficePowerPointTheme
[-Master <Int32>]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
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-OfficePowerPointReturns theme information after updating the deck theme metadata.
Parameters
- -Master Int32
- Slide master index to inspect.
- -Presentation PowerPointPresentation
- 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.