Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars160
Forks14
Open issues0
PowerShell Gallery downloads158661
Releasev3.0.5
Language: C# Updated: 2026-09-07T07:20:15.0000000+00:00

Documentation

Install and Verify PSWriteOffice

Install the module, confirm the command surface, and choose a safe output location. Includes PowerShell examples, validation notes, and cmdlet links.

Install PSWriteOffice from the PowerShell Gallery before trying the curated document automation examples.

Install-Module -Name PSWriteOffice -Scope CurrentUser
Import-Module PSWriteOffice

Confirm what was loaded:

$module = Get-Module PSWriteOffice
$module.Version

Get-Command -Module PSWriteOffice |
    Group-Object Noun |
    Sort-Object Count -Descending |
    Select-Object -First 12 Count, Name

PSWriteOffice does not require Microsoft Office for its managed document workflows. Individual optional integrations can still have their own platform, native library, authentication, or external-process requirements; check the relevant guide before deploying a broad conversion or OCR workflow.

Use predictable output paths

Examples should write to a script-local or explicitly configured artifact directory:

$outputRoot = Join-Path $PSScriptRoot 'Output'
$null = New-Item -ItemType Directory -Path $outputRoot -Force
$wordPath = Join-Path $outputRoot 'Report.docx'
$pdfPath = Join-Path $outputRoot 'Report.pdf'

This makes cleanup, CI artifact upload, and permissions easier to reason about than relying on the current working directory.

Next steps