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

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation OfficeIMO.PowerPoint.PowerPointSlide
Outputs
PSWriteOffice.Services.PowerPoint.PowerPointShapeInfo

Reads shape summaries from a slide or presentation.

Syntax

Get-OfficePowerPointShape
[-Kind <OfficePowerPointShapeKind[]>]
[-Name <String[]>]
[-ShapeIndex <Int32[]>]
[-Slide <PowerPointSlide>]
[<CommonParameters>]
#
Parameter set: Slide
Get-OfficePowerPointShape
[-Index <Int32>]
[-Kind <OfficePowerPointShapeKind[]>]
[-Name <String[]>]
[-Presentation <PowerPointPresentation>]
[-ShapeIndex <Int32[]>]
[<CommonParameters>]
#
Parameter set: Presentation

Description

Returns PowerShell-friendly metadata for text boxes, pictures, tables, charts, and auto shapes.

Examples

Inspect one slide.

Get-OfficePowerPointSlide -Presentation $ppt -Index 0 | Get-OfficePowerPointShape

Returns shape summaries for the selected slide.

Find pictures on a slide.

Get-OfficePowerPointShape -Presentation $ppt -Index 0 -Kind Picture

Filters the slide output to picture shapes only.

Parameters

-Kind OfficePowerPointShapeKind[] optional
Optional shape kind filter.
Possible values: TextBox, Picture, Table, Chart, AutoShape, GroupShape
-Name String[] optional
Optional wildcard filter for shape names.
-ShapeIndex Int32[] optional
Optional zero-based shape index filter.
-Slide PowerPointSlide optionalpipeline: True (ByValue)sets: Slide
Slide to inspect (optional inside the DSL).
-Index Int32 optionalsets: Presentation
Optional zero-based slide index when reading from a presentation.
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)sets: Presentation
Presentation whose slides should be inspected.

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.PowerPointShapeInfo: PowerShell-friendly description of a PowerPoint shape.