Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Copy-OfficePowerPointSlide

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointSlide

Copies an existing slide within a PowerPoint presentation.

Remarks

Uses OfficeIMO slide duplication so charts, notes, and shapes are preserved.

Examples

Authored help example

Duplicate the first slide and insert the copy after it.

PS>


Copy-OfficePowerPointSlide -Presentation $ppt -Index 0
        

Creates a duplicate of slide 1 and inserts it at position 2.

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

Copy-OfficePowerPointSlide -Index <Int32> [-InsertAt <Nullable`1>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Index Int32 requiredposition: namedpipeline: False
Zero-based slide index to duplicate.
InsertAt Nullable`1 optionalposition: namedpipeline: False
Optional target index for the duplicate; omit to insert after the source slide.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update (optional inside DSL).

Outputs

OfficeIMO.PowerPoint.PowerPointSlide