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-OfficePowerPointSlide

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation

Enumerates slides or retrieves a specific slide.

Syntax

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

Description

Supports pipeline-friendly iteration over Slides or direct index selection.

Examples

List slide titles.

Get-OfficePowerPointSlide -Presentation $ppt | Get-OfficePowerPointPlaceholder -PlaceholderType Title | Select-Object -ExpandProperty Text

Streams each slide so you can read the title placeholder text.

Enumerate slides inside the DSL.

New-OfficePowerPoint -Path .\deck.pptx { Get-OfficePowerPointSlide | Select-Object -First 1 }

Uses the current DSL presentation context.

Parameters

-Index Int32 optional
Optional zero-based index; omit to enumerate all slides.
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)
Presentation to inspect (optional inside DSL).

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.