Cmdlet
Get-OfficePowerPointSlide
Gets editable slides from a live document, or detached slide summaries from files.
Syntax
Get-OfficePowerPointSlide
[[-Document] <PowerPointDocument>]
[-Slide <Int32[]>]
[-Summary]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficePowerPointSlide
[-Path] <String[]>
[-Slide <Int32[]>]
[-Summary]
[<CommonParameters>]#Parameter set:
PathGet-OfficePowerPointSlide
-LiteralPath <String[]>
[-Slide <Int32[]>]
[-Summary]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Read slide titles without leaving files open.
Get-ChildItem .\Decks -Filter *.pptx | Get-OfficePowerPointSlide -Summary | Select-Object Path, SlideIndex, TitleSelect an editable slide.
Get-OfficePowerPointSlide -Document $deck -Slide 3Parameters
- -Document PowerPointDocument
- Gets or sets a live document; omission uses the enclosing document block.
- -Slide Int32[]
- Gets or sets one-based slide positions; omission selects every slide.
- -Summary SwitchParameter
- Gets or sets whether to return summaries; required when inspecting files.
- -Path String[]
- Gets or sets file paths with provider wildcard expansion.
- -LiteralPath String[]
- Gets or sets literal file paths, including FileInfo pipeline input.
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.PowerPointSlideSummaryInfo: PowerShell-friendly summary of a PowerPoint slide.