API Reference
Cmdlet
Import-OfficePowerPointSlide
Imports a slide from another PowerPoint presentation.
Remarks
Can import from an open presentation or directly from a source file path.
Examples
Example 1: Import the first slide from another deck.
PS>
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointImportTarget.pptx {
Add-OfficePowerPointSlide -Layout 1 | 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 <Nullable`1>] [-Presentation <PowerPointPresentation>] -SourceIndex <Int32> -SourcePresentation <PowerPointPresentation> [<CommonParameters>]#Parameter set:
SourcePresentationParameters
- InsertAt Nullable`1
- Optional target insertion index; omit to append.
- Presentation PowerPointPresentation
- Target presentation to update (optional inside DSL).
- SourceIndex Int32
- Zero-based slide index in the source presentation.
- SourcePresentation PowerPointPresentation
- Source presentation to import from.
Outputs
OfficeIMO.PowerPoint.PowerPointSlide
Import-OfficePowerPointSlide [-InsertAt <Nullable`1>] [-Presentation <PowerPointPresentation>] -SourceIndex <Int32> -SourcePath <String> [<CommonParameters>]#Parameter set:
SourcePathParameters
- InsertAt Nullable`1
- Optional target insertion index; omit to append.
- Presentation PowerPointPresentation
- Target presentation to update (optional inside DSL).
- SourceIndex Int32
- Zero-based slide index in the source presentation.
- SourcePath String
- Path to the source presentation.
Outputs
OfficeIMO.PowerPoint.PowerPointSlide