API Reference
Command
Save-OfficeWord
Saves a Word document without disposing it.
Remarks
Saves a Word document without disposing it.
Examples
Save the open document.
PS>$doc | Save-OfficeWord
Persists pending changes and keeps the document open.
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
Save-OfficeWord -Document <WordDocument> [-PassThru] [-Path <String>] [-Show] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Document WordDocument
- Document to save.
- PassThru SwitchParameter
- Emit the document object for further processing.
- Path String
- Optional save-as path.
- Show SwitchParameter
- Open the document after saving.
Outputs
OfficeIMO.Word.WordDocument