# Get-OfficeWordList

Gets lists from a Word document or section. 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 **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` `OfficeIMO.Word.WordSection`

**Outputs**

`OfficeIMO.Word.WordList`

**Source**

[GetOfficeWordListCommand.cs:37](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/GetOfficeWordListCommand.cs#L37) 

Gets lists from a Word document or section.

## Syntax

```
Get-OfficeWordList
[-IncludeEmpty]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officewordlist-switchparameter-string)

Parameter set: `Path`

```
Get-OfficeWordList
-Document <WordDocument>
[-IncludeEmpty]
[<CommonParameters>]
```

[#](#method-get-officewordlist-worddocument-switchparameter)

Parameter set: `Document`

```
Get-OfficeWordList
[-IncludeEmpty]
-Section <WordSection>
[<CommonParameters>]
```

[#](#method-get-officewordlist-switchparameter-wordsection)

Parameter set: `Section`

## Description

Returns existing WordList objects so scripts can inspect list items, report on checklist content, or pipe a selected list to Add-OfficeWordListItem. Use this command when the script needs to work with list objects directly instead of using a text search first.

## Examples

### Inspect existing list items.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
$list = $doc | Get-OfficeWordList | Select-Object -First 1
$list.ListItems | Select-Object -Property Text
```

Returns OfficeIMO list objects so existing list items can be reviewed or appended to.

### Select a checklist by existing item text and append an item.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
Get-OfficeWordList -Document $doc |
    Where-Object { $_.ListItems.Text -contains 'Initial review' } |
    Add-OfficeWordListItem -Text 'Final approval'
$doc | Close-OfficeWord -Save
```

Inspects list objects directly when the caller wants custom selection logic.

## Parameters

**-IncludeEmpty SwitchParameter optional**

Include numbering definitions that do not currently have list items.

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: Path**

Path to the document to open read-only for list inspection.

**-Document WordDocument requiredpipeline: True (ByValue)sets: Document**

Open document to inspect. The caller controls the document lifetime.

**-Section WordSection requiredpipeline: True (ByValue)sets: Section**

Section to inspect when the caller only wants lists in a specific section.

## 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:22A51D2ACC75F5FFE1847C54F3388B9272C8856D86ACD776A59F32CCC1A3B607 -->
