Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Import-OfficePowerPointSlide

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

Imports a slide from another PowerPoint presentation.

Remarks

Can import from an open presentation or directly from a source file path.

Examples

Authored help example

Import the first slide from another deck.

PS>


New-OfficePowerPoint -Path .\Examples\Documents\PowerPointImportTarget.pptx {
                Add-OfficePowerPointSlide -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Target deck'
                Import-OfficePowerPointSlide -SourcePath .\Examples\Documents\SourceDeck.pptx -SourceIndex 0 -InsertAt 1
            }
        

Imports the first slide from another deck into the target presentation.

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

Import-OfficePowerPointSlide [-InsertAt <Int32>] [-Presentation <PowerPointPresentation>] -SourceIndex <Int32> -SourcePresentation <PowerPointPresentation> [<CommonParameters>]
#
Parameter set: SourcePresentation

Parameters

InsertAt Int32 optionalposition: namedpipeline: False
Optional target insertion index; omit to append.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Target presentation to update (optional inside DSL).
SourceIndex Int32 requiredposition: namedpipeline: False
Zero-based slide index in the source presentation.
SourcePresentation PowerPointPresentation requiredposition: namedpipeline: False
Source presentation to import from.

Outputs

OfficeIMO.PowerPoint.PowerPointSlide

Import-OfficePowerPointSlide [-InsertAt <Int32>] [-Presentation <PowerPointPresentation>] -SourceIndex <Int32> -SourcePath <String> [<CommonParameters>]
#
Parameter set: SourcePath

Parameters

InsertAt Int32 optionalposition: namedpipeline: False
Optional target insertion index; omit to append.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Target presentation to update (optional inside DSL).
SourceIndex Int32 requiredposition: namedpipeline: False
Zero-based slide index in the source presentation.
SourcePath String requiredposition: namedpipeline: Falsealiases: Path
Path to the source presentation.

Outputs

OfficeIMO.PowerPoint.PowerPointSlide