# Get-OfficeWordStatistics

Gets document statistics 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 

Aliases: WordStatistics

**Module**

`PSWriteOffice`

**Aliases**

`WordStatistics`

**Inputs**

`OfficeIMO.Word.WordDocument`

**Outputs**

`PSWriteOffice.Models.Word.WordDocumentStatisticsInfo`

**Source**

[GetOfficeWordStatisticsCommand.cs:24](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/GetOfficeWordStatisticsCommand.cs#L24) 

Gets document statistics from a Word document.

## Syntax

```
Get-OfficeWordStatistics
[-Path] <String>
[<CommonParameters>]
```

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

Parameter set: `Path`

```
Get-OfficeWordStatistics
-Document <WordDocument>
[<CommonParameters>]
```

[#](#method-get-officewordstatistics-worddocument)

Parameter set: `Document`

## Description

Returns a PowerShell-friendly snapshot of OfficeIMO.Word statistics for quick reporting and validation.

## Examples

### Check document complexity before publishing.

```powershell
$stats = Get-OfficeWordStatistics -Path .\Report.docx
$stats |
    Select-Object -Property Paragraphs, Tables, Images, Charts |
    Format-List
```

Reads OfficeIMO.Word statistics and displays the structural counts that matter for a release artifact.

## Parameters

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

Path to the Word document.

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

Document 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).

## Outputs

PSWriteOffice.Models.Word.WordDocumentStatisticsInfo: PowerShell-friendly snapshot of Word document statistics.

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:DA6C347BE5F3C5C68962952AAD7A49DDFD3AAA2E1B43B092EE142237FBD03C19 -->
