API Reference
Cmdlet
Save-OfficePowerPoint
Saves a presentation to disk.
Remarks
Invokes the PowerPoint service to persist the document and optionally launch it.
Examples
Example 1: Save and open the deck.
PS>
$ppt = New-OfficePowerPoint -FilePath .\Examples\Documents\PowerPointSave.pptx
$slide = Add-OfficePowerPointSlide -Presentation $ppt -Layout 1
Set-OfficePowerPointSlideTitle -Slide $slide -Title 'Saved later'
Save-OfficePowerPoint -Presentation $ppt -PdfPath .\Examples\Documents\PowerPointSave.pdf
Saves the current presentation and exports a PDF sidecar.
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
Save-OfficePowerPoint [-Password <String>] [-PdfPath <String>] -Presentation <PowerPointPresentation> [-Show] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Password String
- Password used to save the presentation as an encrypted package.
- PdfPath String
- Optional PDF path to create from the same presentation.
- Presentation PowerPointPresentation
- Presentation instance to save.
- Show SwitchParameter
- Launch the saved file in the default viewer.