Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficePowerPoint

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointDocument
Outputs
System.IO.FileInfo

Saves a live presentation without closing it.

Syntax

Save-OfficePowerPoint
[-AllowLoss]
[-Document] <PowerPointDocument>
[-PassThru]
[-Password <SecureString>]
[-Path <String>]
[-Show]
[<CommonParameters>]
#
Parameter set: Document

Description

Uses the supplied path or the document's associated destination. Omitted Password preserves loaded encryption. PassThru returns the saved FileInfo.

Examples

Save a live document to a new destination.

$deck = New-OfficePowerPoint
Save-OfficePowerPoint -Document $deck -Path ./Review.pptx -PassThru
Close-OfficePowerPoint -Document $deck

Parameters

-AllowLoss SwitchParameter optional
Explicitly accept reported native-save reductions.
-Document PowerPointDocument requiredposition: 0pipeline: True (ByValue)
Live presentation to save.
-PassThru SwitchParameter optional
Return the saved FileInfo.
-Password SecureString optional
Override the output password; omission preserves the document's loaded encryption.
-Path String optional
Optional new destination; omission uses the associated path.
-Show SwitchParameter optional
Open the saved file in its registered default application.

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.