# Get-OfficeWordBookmark

Gets bookmarks from a Word document. 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 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordDocument`

**Outputs**

`OfficeIMO.Word.WordBookmark`

**Source**

[GetOfficeWordBookmarkCommand.cs:23](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/GetOfficeWordBookmarkCommand.cs#L23) 

Gets bookmarks from a Word document.

## Syntax

```
Get-OfficeWordBookmark
[-Name <String[]>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officewordbookmark-string-string)

Parameter set: `Path`

```
Get-OfficeWordBookmark
-Document <WordDocument>
[-Name <String[]>]
[<CommonParameters>]
```

[#](#method-get-officewordbookmark-worddocument-string)

Parameter set: `Document`

## Description

Returns WordBookmark objects, optionally filtered by name.

## Examples

### List report bookmarks by name pattern.

```powershell
$bookmarks = Get-OfficeWordBookmark -Path .\Report.docx -Name 'Appendix*', 'ExecutiveSummary'
$bookmarks |
    Select-Object -Property Name |
    Format-Table -AutoSize
```

Loads the document read-only, filters bookmark names with wildcards, and displays the matching navigation targets.

## Parameters

**-Name String[] optional**

Bookmark name filter (wildcards supported).

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

Path to the .docx file.

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

Word document to read.

## 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:2E745A53336E0D6E2923CE8F7FD91D8CA37E4375402786E7AE237A6BD226D2C4 -->
