Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

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 -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 Sets

Parameters

Open SwitchParameter optionalposition: namedpipeline: Falsealiases: Show
Launch the saved file in the default viewer.
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.
Presentation PowerPointPresentation requiredposition: namedpipeline: True (ByValue)
Presentation instance to save.

Outputs

OfficeIMO.PowerPoint.PowerPointPresentation