Cmdlet
Get-OfficeWordList
Gets lists, optionally only those with an item matching a pattern.
Syntax
Get-OfficeWordList
[-CaseSensitive]
[-Document <WordDocument>]
[-IncludeEmpty]
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordList
[-CaseSensitive]
[-IncludeEmpty]
[-Path] <String[]>
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordList
[-CaseSensitive]
[-IncludeEmpty]
-LiteralPath <String[]>
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficeWordList
[-CaseSensitive]
[-IncludeEmpty]
[-Pattern <String>]
-Section <WordSection>
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
SectionExamples
Example 1
Get-OfficeWordList -CaseSensitiveExample 2
Get-OfficeWordList -LiteralPath @('C:\Path')Example 3
Get-OfficeWordList -Path @('C:\Path')Parameters
- -CaseSensitive SwitchParameter
- Use case-sensitive matching.
- -Document WordDocument
- Caller-owned document; omission uses the enclosing Word content block.
- -IncludeEmpty SwitchParameter
- Include list definitions with no items.
- -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.