API Reference
Cmdlet
Save-OfficePowerPoint
Saves a presentation without disposing it.
Remarks
Use Close-OfficePowerPoint -Save when the presentation should be saved and closed.
Examples
Save and open the deck.
PS>
$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointSave.pptx -NoSave
$slide = Add-OfficePowerPointSlide -Presentation $ppt -Layout 1 -PassThru
Set-OfficePowerPointSlideTitle -Slide $slide -Title 'Saved later'
Save-OfficePowerPoint -Presentation $ppt
Saves the current presentation without closing it.
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 [-Open] [-PassThru] [-Password <String>] [-Path <String>] -Presentation <PowerPointPresentation> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Open SwitchParameter
- Launch the saved file in the default viewer.
- PassThru SwitchParameter
- Emit the still-open presentation for further processing.
- Password String
- Password used to save the presentation as an encrypted package.
- Path String
- Optional save-as path.
- Presentation PowerPointPresentation
- Presentation instance to save.
Outputs
OfficeIMO.PowerPoint.PowerPointPresentation