Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Get-OfficeWord

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Opens an existing Word document.

Remarks

Returns an OfficeIMO WordDocument for inspection or advanced operations.

Examples

Authored help example

Load a document in read-only mode.

PS>


$doc = Get-OfficeWord -Path .\Report.docx -ReadOnly
        

Loads Report.docx and exposes the document object for querying.

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

Get-OfficeWord [-AutoSave] -InputPath <String> [-ReadOnly] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AutoSave SwitchParameter optionalposition: namedpipeline: False
Enable AutoSave when editing.
InputPath String requiredposition: 0pipeline: Falsealiases: FilePath, Path
Path to the .docx. Accepts PS paths.
ReadOnly SwitchParameter optionalposition: namedpipeline: False
Open in read-only mode.

Outputs

System.Object