Cmdlet
Get-OfficeWordCheckBox
Gets checkbox content controls from a Word document.
Syntax
Examples
Review unchecked approval boxes.
$openItems = Get-OfficeWordCheckBox -Path .\Report.docx -Tag 'approval-*' -Unchecked
$openItems |
Select-Object -Property Alias, Tag, IsChecked |
Format-Table -AutoSizeFinds unchecked approval checkboxes by tag so a review workflow can show what is still pending.
Parameters
- -Alias String[]
- Filter by checkbox alias (wildcards supported).
- -Checked SwitchParameter
- Only return checked checkboxes.
- -Path String
- Path to the .docx file.
- -Tag String[]
- Filter by checkbox tag (wildcards supported).
- -Unchecked SwitchParameter
- Only return unchecked checkboxes.
- -Document WordDocument
- Word document to read.
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.