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-OfficeWordRepeatingSection

Aliases: WordRepeatingSections
Namespace PSWriteOffice
Aliases
WordRepeatingSections
Inputs
OfficeIMO.Word.WordDocument
Outputs
OfficeIMO.Word.WordRepeatingSection

Gets repeating section content controls from a Word document.

Remarks

Gets repeating section content controls from a Word document.

Examples

Authored help example

Audit repeating section controls in a template.

PS>


$sections = Get-OfficeWordRepeatingSection -Path .\Template.docx -Tag 'risk-row-*'
            $sections |
                Select-Object -Property Alias, Tag |
                Format-Table -AutoSize
        

Finds repeating sections used for repeatable rows in a document template.

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

Get-OfficeWordRepeatingSection [-Alias <String[]>] -Path <String> [-Tag <String[]>] [<CommonParameters>]
#
Parameter set: Path

Parameters

Alias String[] optionalposition: namedpipeline: False
Filter by repeating section alias (wildcards supported).
Path String requiredposition: 0pipeline: Falsealiases: FilePath, InputPath
Path to the .docx file.
Tag String[] optionalposition: namedpipeline: False
Filter by repeating section tag (wildcards supported).

Outputs

OfficeIMO.Word.WordRepeatingSection

Get-OfficeWordRepeatingSection [-Alias <String[]>] -Document <WordDocument> [-Tag <String[]>] [<CommonParameters>]
#
Parameter set: Document

Parameters

Alias String[] optionalposition: namedpipeline: False
Filter by repeating section alias (wildcards supported).
Document WordDocument requiredposition: namedpipeline: True (ByValue)
Word document to read.
Tag String[] optionalposition: namedpipeline: False
Filter by repeating section tag (wildcards supported).

Outputs

OfficeIMO.Word.WordRepeatingSection