Cmdlet
Get-OfficeExcelDataModel
Reports connection, query-table, data-model and external-link parts in a workbook.
Syntax
Examples
Report data connections
Get-OfficeExcelDataModel -Path .\Reports\Live-Sales.xlsxLists connections, query tables, data-model parts and external links in the workbook.
Find workbooks with external data
Get-ChildItem -Path \\files\Finance -Filter *.xlsx -Recurse |
Get-OfficeExcelDataModel |
Format-ListReports the data model of every workbook on the finance share, to find files that depend on databases or other workbooks.
Parameters
- -Document ExcelDocument
- Caller-owned workbook; omission uses the enclosing Excel content block.
- -Path String[]
- Workbook paths resolved with filesystem wildcard support.
- -LiteralPath String[]
- Literal workbook paths, including FileInfo.FullName and provider PSPath.
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.