- Module
PSWriteOffice- Aliases
WordFooter- Inputs
None
Adds content to a section footer.
Description
Creates or reuses the requested footer part (default/first/even) and runs the DSL script block inside it.
Guides & Samples
Authored walkthroughs and practical samples linked to this command.
Replace archived PSWriteWord scripts with maintained PSWriteOffice Word commands for DOCX creation, editing, review, merge, and conversion.
Collect Windows errors with PSEventViewer, explain the snapshot in a Word and PDF brief, and keep the full messages in an editable Excel register.
Read supplier offers with PSParseHTML, compare price and delivery, and create an editable Word review, PDF and numeric Excel workbook with PSWriteOffice.
Turn dated milestones into an editable register and a Word/PDF review with completed counts, overdue work and named recovery actions.
Reconcile annual budget, actual spending and forecast in an editable workbook, then produce a Word/PDF review with owner decisions for overspend exceptions.
Review patch compliance and site exceptions with a PowerShell report, including a summary chart, an editable Word document and a PDF.
Examples
Append page numbers to the default footer.
Add-OfficeWordSection { Add-OfficeWordFooter { Add-OfficeWordPageNumber -IncludeTotalPages } }
Inserts a footer displaying “Page X of Y”.
Parameters
- -Content ScriptBlock optionalposition: 0
- DSL scriptblock executed within the footer context.
- -PassThru SwitchParameter optional
- Emit the object created or changed by the command.
- -Type WordHeaderFooterType optional
- The footer kind (Default/First/Even).
- Possible values:
Default, First, Even
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.