Cmdlet
Close-OfficePowerPoint
Closes a live presentation without saving it.
Syntax
Close-OfficePowerPoint
[-Document] <PowerPointDocument>
[<CommonParameters>]#Parameter set:
DocumentDescription
Releases the native document and writes no output. Save changes explicitly with Save-OfficePowerPoint before closing. Documents configured for SaveOnDispose must be reopened with explicit persistence.
Examples
Save and close a deck.
$deck = Open-OfficePowerPoint -Path ./Review.pptx
Save-OfficePowerPoint -Document $deck
Close-OfficePowerPoint -Document $deckParameters
- -Document PowerPointDocument
- Live presentation to close.
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.