# Set-OfficePowerPointBackground

Sets the slide background color or image. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: PptBackground

**Module**

`PSWriteOffice`

**Aliases**

`PptBackground`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointSlide`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointSlide`

**Source**

[SetOfficePowerPointBackgroundCommand.cs:24](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/SetOfficePowerPointBackgroundCommand.cs#L24) 

Sets the slide background color or image.

## Syntax

```
Set-OfficePowerPointBackground
[-Color] <String>
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]
```

[#](#method-set-officepowerpointbackground-string-switchparameter-powerpointslide)

Parameter set: `Color`

```
Set-OfficePowerPointBackground
[-ImagePath] <String>
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]
```

[#](#method-set-officepowerpointbackground-string-switchparameter-powerpointslide-2)

Parameter set: `Image`

```
Set-OfficePowerPointBackground
-Clear
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]
```

[#](#method-set-officepowerpointbackground-switchparameter-switchparameter-powerpointslide)

Parameter set: `Clear`

## Examples

### Apply a solid background color.

```powershell
Get-OfficePowerPointSlide -Presentation $ppt -Index 0 | Set-OfficePowerPointBackground -Color '#F4F7FB'
```

Applies a solid color fill to the slide background.

### Apply a background image.

```powershell
Set-OfficePowerPointBackground -Slide $slide -ImagePath '.\hero.png'
```

Uses the provided image as the slide background.

## Parameters

**-Color String requiredposition: 0sets: Color**

Background color (hex or named color).

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-Slide PowerPointSlide optionalpipeline: True (ByValue)**

Slide to update (optional inside a slide DSL scope).

**-ImagePath String requiredposition: 0sets: Image**

Path to a background image file.

**-Clear SwitchParameter requiredsets: Clear**

Clears any explicit background color or image.

## 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:2EDB55BA9215DBF56A957125B98376CEA56117AE2A913FBA40DE7389C7131C85 -->
