Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

What PSWriteOffice Covers

Edit on GitHub

A practical map of PSWriteOffice's manifest-derived commands, workflow families, OfficeIMO relationship, and supported automation outcomes.

Use PSWriteOffice when a PowerShell job needs to create, convert, inspect, repair, or publish documents without automating desktop Office applications. The module is a thin PowerShell surface over the OfficeIMO libraries, so scripts and .NET applications use the same document engines and file-format behavior.

The module manifest is the source of truth for exported cmdlets and aliases. The generated command catalog derives the current totals and family breakdown from PSWriteOffice.psd1 so the documentation stays aligned with the packaged module.

Choose the surface by outcome

NeedStart withWhy
Produce a report or template-driven artifactWord, Excel, PowerPoint, or PDF DSLScript blocks keep composition close to the data and make repeated jobs readable.
Update an existing fileOpen-*, Get-*, Set-*, Update-*, and Save-* commandsThe object remains in the OfficeIMO model while the script performs targeted changes.
Review or diagnose filesinspection, preflight, comparison, and HTML export commandsRead-only diagnostics can run before a job decides whether to change or reject an artifact.
Normalize many formatsReader commandsOne result model exposes documents, chunks, hierarchy, tables, visuals, assets, warnings, and provenance.
Convert between formats or place reusable visualsConvert-OfficeDocument and visual commandsConversion behavior stays in the matching OfficeIMO adapter. PDF input can also be reconstructed as editable Word, Excel, or PowerPoint content.
Edit configuration or move data between formatsOpen-OfficeYaml, Open-OfficeToml, Import-OfficeToml, and Convert-OfficeDocumentYAML and TOML edits keep comments and layout, and data conversions report anything the target format cannot hold. See Configuration files and data conversion.
Share a file outside your teamGet-OfficeHiddenData and Remove-OfficeHiddenDataComments, authors, speaker notes, image metadata and AI labels are listed and removed into a cleaned copy, with an outcome for every item. See Clean files before sharing.
Check protected-content support before automationGet-OfficeDocumentCapability -ProtectionFilterable, typed capability rows show supported operations, limits, and incomplete format coverage before a workflow handles a protected file.

Major families

  • Excel — 102 commands: authoring, reading, charts, pivots, validation, comments, templates, comparison, repair, accessibility, streaming, visual placement, and image export.
  • Word — 80 commands: sections, paragraphs, lists, tables, fields, content controls, review, mail merge, visual placement, and conversion settings. Merging and protecting whole documents are cross-format operations (Merge-OfficeDocument, Protect-OfficeDocument).
  • PDF — 77 commands: composition, structured reading, explicit Word/Excel/PowerPoint/Markdown/RTF export, editable Office reconstruction, text and image extraction, searchable OCR output, merge/split, pages, forms, annotations, attachments, signatures, compliance, redaction, optimization, visual placement, and diagnostics.
  • Printing — 5 commands: print any document OfficeIMO can turn into PDF on a named queue or IPP printer, read printer capabilities, and follow or cancel jobs. Requires PowerShell 7.6 or newer.
  • PowerPoint — 54 commands: slides, sections, shapes, charts, tables, notes, themes, layouts, transitions, visual placement, import, inspection, and HTML review.
  • Cross-format operations — 14 commands: inspect, compare, validate, repair, protect, combine, split, convert, and render documents to images with limits and reports. See Choose a conversion route.
  • Notebooks — 14 commands: open and edit Jupyter notebooks, run PowerShell cells, inspect saved results, and export documents and charts offline. See the notebook workflow.
  • Before sharing — 6 commands: list and remove comments, authors, hidden content, image metadata and AI labels, inspect Content Credentials, and check Word, Excel and PowerPoint accessibility. See Clean files before sharing.
  • YAML — 13 commands: edit files without losing comments or layout, merge overlays, validate, and convert to and from objects. See Configuration files and data conversion.
  • TOML — 13 commands: edit files without losing comments or layout, and read and write settings and lock files as PowerShell objects. See Configuration files and data conversion.
  • CSV — 4 commands: import and export delimited data with explicit quoting, encoding, and formula-injection rules.
  • Archives — 2 commands: list members, verify payloads by source ordinal, and extract selected files to a new directory. See Inspect and extract archives.
  • Project — 20 commands: create and schedule tasks, resources and assignments; exchange mapped tables; save native MPP or Project XML and export reports. See Project, Access, and EPUB.
  • Access — 9 commands: inspect native MDB/ACCDB schemas and rows, and create inert table databases from PowerShell objects.
  • EPUB — 8 commands: build publications from chapters, resources and metadata, then inspect and save the package.
  • OneNote and iWork — 5 commands: read offline OneNote sections and notebooks, and Apple Pages, Numbers and Keynote packages.
  • Google Docs and Sheets — 5 commands: sign in with a service account and export Word documents to Google Docs and workbooks to Google Sheets.
  • Confluence Cloud — 7 commands: plan, create, update, and remove pages; preserve managed sections; and list, upload, or download attachments.
  • Markdown, Visio, Reader, OCR, HTML, and open formats: typed Markdown, VSDX diagrams and stencils, normalized extraction, local image OCR, HTML conversion settings, RTF, ODT/ODS/ODP, email, AsciiDoc, and LaTeX workflows.

How the documentation fits together

Conceptual guides answer which workflow to choose and how objects move through a script. The generated command reference owns parameter sets, accepted values, pipeline behavior, and source links. The example gallery provides copyable end-to-end scripts.

When a guide and command page appear to disagree, use the current command reference and report the guide mismatch. The catalog validation prevents command totals from drifting, while examples and help remain the executable source for exact syntax.

Example source