Cmdlet
Save-OfficePowerPoint
Saves a presentation without disposing it.
Syntax
Save-OfficePowerPoint
[-Open]
[-PassThru]
[-Password <String>]
[-Path <String>]
-Presentation <PowerPointPresentation>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Use Close-OfficePowerPoint -Save when the presentation should be saved and closed.
Examples
Save and open the deck.
$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 $pptSaves the current presentation without closing it.
Parameters
- -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.
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.