# Set-OfficeExcelDocumentProperty

Sets a built-in or application document property on an Excel workbook.

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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`OfficeIMO.Excel.ExcelDocument`

**Source**

[SetOfficeExcelDocumentPropertyCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/SetOfficeExcelDocumentPropertyCommand.cs#L20) 

Sets a built-in or application document property on an Excel workbook.

## Syntax

```
Set-OfficeExcelDocumentProperty
[-Custom]
[-Document <ExcelDocument>]
[-Name] <String>
[-PassThru]
[[-Value] <Object>]
[<CommonParameters>]
```

[#](#method-set-officeexceldocumentproperty-switchparameter-exceldocument-string-switchparameter-object)

Parameter set: `All Parameter Sets`

## Examples

### Stamp publishing metadata while creating a workbook.

```powershell
New-OfficeExcel -Path .\Report.xlsx {
    Set-OfficeExcelDocumentProperty -Name Title -Value 'Operational dashboard'
    Set-OfficeExcelDocumentProperty -Name Department -Value 'Operations' -Custom
}
```

Updates built-in or custom workbook properties through the current Excel DSL context.

## Parameters

**-Custom SwitchParameter optional**

Treat the property as a custom workbook property.

**-Document ExcelDocument optionalpipeline: True (ByValue)**

Workbook to update when provided explicitly.

**-Name String requiredposition: 0**

Property name to update.

**-PassThru SwitchParameter optional**

Emit the updated workbook.

**-Value Object optionalposition: 1**

Property value.

## 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:C51CF27D4E8B2FBAF3F9FD0495E7ADE7CE9857BBA0626D3DA7E8F40525D9C3F4 -->
