Cmdlet
Copy-OfficePowerPointSlide
Copies a native slide within its document, preserving its content and relationships.
Syntax
Copy-OfficePowerPointSlide
[-Document <PowerPointDocument>]
[-PassThru]
[-Position <Int32>]
[-Slide] <PowerPointSlideSelector>
[<CommonParameters>]#Parameter set:
SlideExamples
Copy the first slide to the end of a two-slide deck.
Copy-OfficePowerPointSlide -Document $deck -Slide 1 -Position 3 -PassThruCopy a selected native slide immediately after itself.
$slide | Copy-OfficePowerPointSlide -PassThruParameters
- -Document PowerPointDocument
- Gets or sets the document for numeric selection; omission uses the enclosing scope or native slide owner.
- -PassThru SwitchParameter
- Gets or sets whether to return the new native slide.
- -Position Int32
- Gets or sets the copy's one-based destination position; omission inserts it immediately after the source.
- -Slide PowerPointSlideSelector
- Gets or sets a native slide or its one-based position.
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.