Cmdlet
Get-OfficeExcelSummary
Gets a compact structural summary of an Excel workbook.
Syntax
Examples
Summarize workbook contents before release.
$summary = Get-OfficeExcelSummary -Path .\report.xlsx -IncludeSheets
$summary |
Select-Object -Property SheetCount, TableCount, ChartCount, PivotTableCount
$summary.Sheets |
Select-Object -Property Name, State, UsedRangeReturns workbook-level counts plus per-sheet tables, charts, pivots, links, comments, and used ranges.
Parameters
- -IncludeSchema SwitchParameter
- Include OfficeIMO inspection snapshot details for schema discovery.
- -IncludeSheets SwitchParameter
- Include per-sheet details in the returned object.
- -Path String
- Path to the workbook.
- -Document ExcelDocument
- Workbook to inspect.
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.