# Set-OfficeWordDocumentProperty

Sets a built-in or custom document property on a Word document.

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.Word.WordDocument`

**Outputs**

`OfficeIMO.Word.WordDocument`

**Source**

[SetOfficeWordDocumentPropertyCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/SetOfficeWordDocumentPropertyCommand.cs#L22) 

Sets a built-in or custom document property on a Word document.

## Syntax

```
Set-OfficeWordDocumentProperty
[-Custom]
[-Document <WordDocument>]
[-Name] <String>
[-PassThru]
[[-Value] <Object>]
[<CommonParameters>]
```

[#](#method-set-officeworddocumentproperty-switchparameter-worddocument-string-switchparameter-object)

Parameter set: `All Parameter Sets`

## Examples

### Set built-in and custom release metadata.

```powershell
New-OfficeWord -Path .\QuarterlyReport.docx {
    Set-OfficeWordDocumentProperty -Name Title -Value 'Quarterly Report'
    Set-OfficeWordDocumentProperty -Name ReleaseStatus -Value 'Approved' -Custom
    Add-OfficeWordParagraph -Text 'Approved quarterly report'
}
Get-OfficeWordDocumentProperty -Path .\QuarterlyReport.docx -Name Title, ReleaseStatus
```

Writes document metadata during composition and reads it back for proof.

## Parameters

**-Custom SwitchParameter optional**

Treat the property as a custom document property.

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

Document to update when provided explicitly.

**-Name String requiredposition: 0**

Property name to update.

**-PassThru SwitchParameter optional**

Emit the updated document.

**-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:F5CCC634F5D6D418B15D977E2CB5E9110F18565F0D74FDF8601478245BC65AAD -->
