# Create a PowerPoint deck

Create a PowerPoint deck on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteOffice

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

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**725**

Forks**84**

Open issues**3**

PowerShell Gallery downloads**5231343**

Release**v3.6.2**

Language: C# Updated: 2026-11-23

Curated Examples

Use PSWriteOffice to generate a PowerPoint deck with slides, sections, notes, and transitions.

This pattern is useful when a repeatable status script should produce a deck that can still be edited in PowerPoint.

It is adapted from `Examples/PowerPoint/Example-PowerPointTransitionsAndSizing.ps1` and `Examples/PowerPoint/Example-PowerPointSectionsAndImport.ps1`.

## Example

```powershell
Import-Module PSWriteOffice

$outputDirectory = (New-Item -ItemType Directory -Path (Join-Path $PSScriptRoot 'Output') -Force).FullName
$outputPath = Join-Path $outputDirectory 'ServiceBrief.pptx'
$deck = New-OfficePowerPoint -Path $outputPath -NoSave {
    PptSlide {
        PptTitle -Title 'Service Brief'
        PptTextBox -Text 'Generated with PSWriteOffice' -X 80 -Y 145 -Width 360 -Height 50
        PptBullets -Bullets 'Current state', 'Risks', 'Next steps' -X 80 -Y 220 -Width 520 -Height 180
        PptNotes -Text 'Use this slide as the spoken summary.'
    }
}

Add-OfficePowerPointSection -Presentation $deck -Name 'Opening' -StartSlideIndex 0
Get-OfficePowerPointSlide -Presentation $deck -Index 0 |
    Set-OfficePowerPointSlideTransition -Transition Fade

Set-OfficePowerPointSlideSize -Presentation $deck -Preset Screen16x9
Close-OfficePowerPoint -Presentation $deck -Save
```

## What this demonstrates

- creating an editable `.pptx` from PowerShell
- adding slide content, speaker notes, and sections
- applying deck-level sizing and slide transitions

## Source

- [Example-PowerPointTransitionsAndSizing.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/PowerPoint/Example-PowerPointTransitionsAndSizing.ps1)
- [Example-PowerPointSectionsAndImport.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/PowerPoint/Example-PowerPointSectionsAndImport.ps1)

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