# Get-OfficeWordHyperlink

Gets hyperlinks 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 **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.WordParagraph` `OfficeIMO.Word.WordSection`

**Outputs**

`OfficeIMO.Word.WordHyperLink`

**Source**

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

Gets hyperlinks from a Word document.

## Syntax

```
Get-OfficeWordHyperlink
[-Anchor <String[]>]
[-Path] <String>
[-Text <String[]>]
[-Url <String[]>]
[<CommonParameters>]
```

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

Parameter set: `Path`

```
Get-OfficeWordHyperlink
[-Anchor <String[]>]
-Document <WordDocument>
[-Text <String[]>]
[-Url <String[]>]
[<CommonParameters>]
```

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

Parameter set: `Document`

```
Get-OfficeWordHyperlink
[-Anchor <String[]>]
-Section <WordSection>
[-Text <String[]>]
[-Url <String[]>]
[<CommonParameters>]
```

[#](#method-get-officewordhyperlink-string-wordsection-string-string)

Parameter set: `Section`

```
Get-OfficeWordHyperlink
[-Anchor <String[]>]
-Paragraph <WordParagraph>
[-Text <String[]>]
[-Url <String[]>]
[<CommonParameters>]
```

[#](#method-get-officewordhyperlink-string-wordparagraph-string-string)

Parameter set: `Paragraph`

## Examples

### Audit external hyperlinks in a report.

```powershell
$links = Get-OfficeWordHyperlink -Path .\Report.docx -Url 'https://*'
$links |
    Select-Object -Property Text, Uri |
    Export-Csv -Path .\ReportLinks.csv -NoTypeInformation
```

Filters external hyperlinks and exports them for link validation or review.

## Parameters

**-Anchor String[] optionalaliases: Bookmark**

Filter by bookmark anchor (wildcards supported).

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

Path to the document.

**-Text String[] optional**

Filter by hyperlink text (wildcards supported).

**-Url String[] optionalaliases: Uri**

Filter by external URL (wildcards supported).

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

Document to inspect.

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

Section to inspect.

**-Paragraph WordParagraph requiredpipeline: True (ByValue)sets: Paragraph**

Paragraph to inspect.

## 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:8F63C175F3F39C9CED23CFF5DBDC36B1311CDF39CA190CB7718241805A55A44B -->
