Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Cmdlet

Save-OfficePowerPoint

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointPresentation

Saves a presentation without disposing it.

Remarks

Use Close-OfficePowerPoint -Save when the presentation should be saved and closed.

Examples

Authored help example

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 [-PassThru] [-Password <String>] [-Path <String>] [-PdfPath <String>] -Presentation <PowerPointPresentation> [-Show] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the still-open presentation for further processing.
Password String optionalposition: namedpipeline: False
Password used to save the presentation as an encrypted package.
Path String optionalposition: namedpipeline: Falsealiases: FilePath
Optional save-as path.
PdfPath String optionalposition: namedpipeline: False
Optional PDF path to create from the same presentation.
Presentation PowerPointPresentation requiredposition: namedpipeline: True (ByValue)
Presentation instance to save.
Show SwitchParameter optionalposition: namedpipeline: False
Launch the saved file in the default viewer.

Outputs

OfficeIMO.PowerPoint.PowerPointPresentation