API Reference
Command
Update-OfficeWordFields
Updates fields in a Word document.
Remarks
Updates fields in a Word document.
Examples
Update fields.
PS>Update-OfficeWordFields
Updates PAGE/NUMPAGES fields and marks TOC fields as dirty.
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
Update-OfficeWordFields [-Document <WordDocument>] [-PassThru] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Document WordDocument
- Document to update when provided explicitly.
- PassThru SwitchParameter
- Emit the updated document.
Outputs
System.Object