Cmdlet
Get-OfficeWordTable
Gets tables, optionally only those with a cell matching a pattern.
Syntax
Get-OfficeWordTable
[-CaseSensitive]
[-Document <WordDocument>]
[-IncludeNested]
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordTable
[-CaseSensitive]
[-IncludeNested]
[-Path] <String[]>
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordTable
[-CaseSensitive]
[-IncludeNested]
-LiteralPath <String[]>
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficeWordTable
[-CaseSensitive]
[-IncludeNested]
[-Pattern <String>]
-Section <WordSection>
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
SectionExamples
Example 1
Get-OfficeWordTable -CaseSensitiveExample 2
Get-OfficeWordTable -LiteralPath @('C:\Path')Example 3
Get-OfficeWordTable -Path @('C:\Path')Parameters
- -CaseSensitive SwitchParameter
- Use case-sensitive matching.
- -Document WordDocument
- Caller-owned document; omission uses the enclosing Word content block.
- -IncludeNested SwitchParameter
- Include tables nested in cells.
- -Pattern String
- Optional regular expression, or literal text with SimpleMatch.
- -SimpleMatch SwitchParameter
- Treat Pattern as literal text.
- -Path String[]
- Document paths; supports wildcards.
- -LiteralPath String[]
- Exact document paths, including literal brackets.
- -Section WordSection
- Caller-owned section 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.