API Reference
Cmdlet
Get-OfficeExcelSummary
Gets a compact structural summary of an Excel workbook.
Remarks
Gets a compact structural summary of an Excel workbook.
Examples
Summarize workbook contents before release.
PS>
$summary = Get-OfficeExcelSummary -Path .\report.xlsx -IncludeSheets
$summary |
Select-Object -Property SheetCount, TableCount, ChartCount, PivotTableCount
$summary.Sheets |
Select-Object -Property Name, State, UsedRange
Returns workbook-level counts plus per-sheet tables, charts, pivots, links, comments, and used ranges.
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-OfficeExcelSummary [-IncludeSchema] [-IncludeSheets] -InputPath <String> [<CommonParameters>]#Parameter set:
PathParameters
- IncludeSchema SwitchParameter
- Include OfficeIMO inspection snapshot details for schema discovery.
- IncludeSheets SwitchParameter
- Include per-sheet details in the returned object.
- InputPath String
- Path to the workbook.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelSummary -Document <ExcelDocument> [-IncludeSchema] [-IncludeSheets] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to inspect.
- IncludeSchema SwitchParameter
- Include OfficeIMO inspection snapshot details for schema discovery.
- IncludeSheets SwitchParameter
- Include per-sheet details in the returned object.
Outputs
System.Management.Automation.PSObject