# Get-OfficePowerPointSection

Gets PowerPoint sections from a presentation. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointPresentation`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointSectionInfo`

**Source**

[GetOfficePowerPointSectionCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/GetOfficePowerPointSectionCommand.cs#L22) 

Gets PowerPoint sections from a presentation.

## Syntax

```
Get-OfficePowerPointSection
[-CaseSensitive]
[-Name <String>]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

[#](#method-get-officepowerpointsection-switchparameter-string-powerpointpresentation)

Parameter set: `All Parameter Sets`

## Description

Returns OfficeIMO section metadata so scripts can inspect section names and slide ranges.

## Examples

### List all sections in a deck.

```powershell
$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointSectionsRead.pptx -NoSave
Add-OfficePowerPointSlide -Presentation $ppt -Layout 1
Add-OfficePowerPointSection -Presentation $ppt -Name 'Appendix' -StartSlideIndex 0
Get-OfficePowerPointSection -Presentation $ppt | Select-Object Name, FirstSlideIndex, SlideCount
$ppt | Close-OfficePowerPoint
```

Returns section information including section names and slide indexes.

## Parameters

**-CaseSensitive SwitchParameter optional**

Use case-sensitive matching for section names.

**-Name String optional**

Optional section name filter.

**-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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:92AB155867AC7B96750C34E14397145A167792A997892CABE714E4F32D5B17B1 -->
