Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Get-OfficePowerPointSlide

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation

Enumerates slides or retrieves a specific slide.

Remarks

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

Examples

Authored help example

List slide titles.

PS>


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.

PS>


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

Uses the current DSL presentation context.

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.

Syntax

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

Parameters

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