Cmdlet
Rename-OfficePowerPointSection
Renames a PowerPoint section.
Syntax
Rename-OfficePowerPointSection
[-CaseSensitive]
-Name <String>
-NewName <String>
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Rename a section in a presentation.
$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 -SaveRenames the first matching section and returns the updated section metadata.
Parameters
- -CaseSensitive SwitchParameter
- Use case-sensitive matching for the existing section name.
- -Name String
- Existing section name.
- -NewName String
- New section name.
- -PassThru SwitchParameter
- Emit the renamed section instead of no output.
- -Presentation PowerPointPresentation
- 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.