# Close-OfficePowerPoint

Closes a live presentation without saving it. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointDocument`

**Source**

[CloseOfficePowerPointCommand.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/PowerPoint/CloseOfficePowerPointCommand.cs#L17) 

Closes a live presentation without saving it.

## Syntax

```
Close-OfficePowerPoint
[-Document] <PowerPointDocument>
[<CommonParameters>]
```

[#](#method-close-officepowerpoint-powerpointdocument)

Parameter set: `Document`

## Description

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.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Add Slides, Text and Images to PowerPoint](/docs/powerpoint/slides/) Guide
  
  Add slides with titles, text, bullets, pictures and speaker notes, and duplicate, import, reorder, hide or group slides into sections in .NET.
- [Automate PowerPoint Presentations](/docs/pswriteoffice/powerpoint/) Guide
  
  Compose, inspect, update, theme, import, and render repeatable presentation decks. Includes PowerShell examples, validation notes, and cmdlet links.
- [Create PowerPoint Decks from Templates](/docs/powerpoint/templates/) Guide
  
  Inspect a corporate PPTX or POTX template, pick layouts and placeholders by name, create decks from it, and reuse its brand colors and fonts.
- [Read and Inspect PowerPoint Decks](/docs/pswriteoffice/powerpoint-read-inspect/) Guide
  
  Open existing presentations, enumerate slides and shapes, inspect notes and layouts, and summarize a deck before changing it.

## Examples

### Save and close a deck.

```powershell
$deck = Open-OfficePowerPoint -Path ./Review.pptx
Save-OfficePowerPoint -Document $deck
Close-OfficePowerPoint -Document $deck
```

## Parameters

**-Document PowerPointDocument requiredposition: 0pipeline: True (ByValue)**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:9D5ABBC2B1F1AC613327DC43AC932223C128A9E7BFB41AE045C7EAEC53A2EA0E -->
