Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePowerPointSlide

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointDocument System.String[]
Outputs
OfficeIMO.PowerPoint.PowerPointSlide PSWriteOffice.Services.PowerPoint.PowerPointSlideSummaryInfo

Gets editable slides from a live document, or detached slide summaries from files.

Syntax

Get-OfficePowerPointSlide
[[-Document] <PowerPointDocument>]
[-Slide <Int32[]>]
[-Summary]
[<CommonParameters>]
#
Parameter set: Document
Get-OfficePowerPointSlide
[-Path] <String[]>
[-Slide <Int32[]>]
[-Summary]
[<CommonParameters>]
#
Parameter set: Path
Get-OfficePowerPointSlide
-LiteralPath <String[]>
[-Slide <Int32[]>]
[-Summary]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Read slide titles without leaving files open.

Get-ChildItem .\Decks -Filter *.pptx | Get-OfficePowerPointSlide -Summary | Select-Object Path, SlideIndex, Title

Select an editable slide.

Get-OfficePowerPointSlide -Document $deck -Slide 3

Parameters

-Document PowerPointDocument optionalposition: 0pipeline: True (ByValue)sets: Document
Gets or sets a live document; omission uses the enclosing document block.
-Slide Int32[] optional
Gets or sets one-based slide positions; omission selects every slide.
-Summary SwitchParameter optional
Gets or sets whether to return summaries; required when inspecting files.
-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path
Gets or sets file paths with provider wildcard expansion.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
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.