Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Save-OfficePowerPoint

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointPresentation

Saves a presentation without disposing it.

Syntax

Save-OfficePowerPoint
[-Open]
[-PassThru]
[-Password <String>]
[-Path <String>]
-Presentation <PowerPointPresentation>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

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 $ppt

Saves the current presentation without closing it.

Parameters

-Open SwitchParameter optionalaliases: Show
Launch the saved file in the default viewer.
-PassThru SwitchParameter optional
Emit the still-open presentation for further processing.
-Password String optional
Password used to save the presentation as an encrypted package.
-Path String optionalaliases: FilePath
Optional save-as path.
-Presentation PowerPointPresentation requiredpipeline: True (ByValue)
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.