Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Get-OfficeWordHyperlink

Namespace PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument OfficeIMO.Word.WordParagraph OfficeIMO.Word.WordSection
Outputs
OfficeIMO.Word.WordHyperLink

Gets hyperlinks from a Word document.

Remarks

Gets hyperlinks from a Word document.

Examples

Authored help example

Audit external hyperlinks in a report.

PS>


$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.

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.

Syntax