# Validate and Repair Excel Workbooks

Validate and Repair Excel Workbooks on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**750**

Forks**87**

Open issues**18**

PowerShell Gallery downloads**5594214**

Release**v3.6.2**

Language: C# Updated: 2026-11-29

Documentation

Preflight workbook operations, test integrity and accessibility, diagnose package state, and apply deliberate repairs.

Validation is a delivery stage, not an incidental side effect of opening a workbook. Keep inspection separate from repair so an automation run cannot silently rewrite a source file.

## Preflight first

- `Get-OfficeExcelRuntimePreflight` reports runtime capabilities and warnings.
- `Get-OfficeExcelPreflight` reports workbook-specific readiness and repair hints.
- `Test-OfficeExcelWorkbook` checks workbook integrity.
- `Test-OfficeExcelAccessibility` checks accessible-delivery concerns.
- `Get-OfficeExcelSummary -IncludeSchema` inventories package features such as queries, slicers, timelines, and external structures.

## Repair explicitly

Use `Repair-OfficeExcelWorkbook` only after inspecting the proposed repair class and preserving the original when required. Reopen the result, repeat the integrity checks, and compare it with the source if preservation matters.

For automated delivery, a useful gate is: create or update, save, preflight, test integrity, test accessibility when applicable, compare against a reference contract, then publish. The [operational dashboard](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Showcase/Showcase-Excel-OperationalDashboard.ps1) provides a substantial artifact for exercising that path.

<!-- PowerForge markdown artifact sha256:9F156FB3E468F64AB926B8BDB34723773EB07C3B815787DBFA29B7A78D92D158 -->
