# Rename-OfficePowerPointSection

Renames a PowerPoint section. 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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointPresentation`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointSectionInfo` `System.Boolean`

**Source**

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

Renames a PowerPoint section.

## Syntax

```
Rename-OfficePowerPointSection
[-CaseSensitive]
-Name <String>
-NewName <String>
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

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

Parameter set: `All Parameter Sets`

## Examples

### Rename a section in a presentation.

```powershell
$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointRenameSection.pptx -NoSave
Add-OfficePowerPointSlide -Presentation $ppt -Layout 1
Add-OfficePowerPointSection -Presentation $ppt -Name 'Results' -StartSlideIndex 0
Rename-OfficePowerPointSection -Presentation $ppt -Name 'Results' -NewName 'Deep Dive' -PassThru
$ppt | Close-OfficePowerPoint -Save
```

Renames the first matching section and returns the updated section metadata.

## Parameters

**-CaseSensitive SwitchParameter optional**

Use case-sensitive matching for the existing section name.

**-Name String required**

Existing section name.

**-NewName String required**

New section name.

**-PassThru SwitchParameter optional**

Emit the renamed section instead of no output.

**-Presentation PowerPointPresentation optionalpipeline: True (ByValue)**

Presentation to update (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:B2051B439733A14185056465116C313B813CCF6C09A57613D3B962AD4678F2DF -->
