# Copy-OfficePowerPointSlide

Copies an existing slide within a PowerPoint presentation.

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.PowerPointSlide`

**Source**

[CopyOfficePowerPointSlideCommand.cs:23](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/CopyOfficePowerPointSlideCommand.cs#L23) 

Copies an existing slide within a PowerPoint presentation.

## Syntax

```
Copy-OfficePowerPointSlide
-Index <Int32>
[-InsertAt <Int32>]
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

[#](#method-copy-officepowerpointslide-int32-int32-switchparameter-powerpointpresentation)

Parameter set: `All Parameter Sets`

## Description

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

## Examples

### Duplicate the first slide and insert the copy after it.

```powershell
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointCopySlide.pptx {
    $slide = Add-OfficePowerPointSlide -Layout 1 -PassThru
    Set-OfficePowerPointSlideTitle -Slide $slide -Title 'Original'
    $copy = Copy-OfficePowerPointSlide -Index 0 -PassThru
    Set-OfficePowerPointSlideTitle -Slide $copy -Title 'Copied appendix'
}
```

Duplicates a slide and updates the copied slide title.

## Parameters

**-Index Int32 required**

Zero-based slide index to duplicate.

**-InsertAt Int32 optional**

Optional target index for the duplicate; omit to insert after the source slide.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-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:87FDD46457E392FD5E1F116074B76DB452ED3DD5E4716937A2CBD9EFDA42AF8C -->
