API Reference
Cmdlet
Get-OfficeExcel
Opens an existing Excel workbook.
Remarks
Returns the underlying ExcelDocument so callers can inspect or reuse it in DSL pipelines.
Examples
Load a workbook in read-only mode.
PS>
$workbook = Get-OfficeExcel -Path .\report.xlsx -ReadOnly
Loads report.xlsx for inspection without enabling writes.
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-OfficeExcel [-Password <String>] -Path <String> [-ReadOnly] [<CommonParameters>]#Parameter set:
PathParameters
- Password String
- Password used to open an encrypted workbook package.
- Path String
- Path to the workbook to load.
- ReadOnly SwitchParameter
- Open the file in read-only mode.
Get-OfficeExcel [-AllowHttp] [-Password <String>] [-ReadOnly] -Uri <Uri> [<CommonParameters>]#Parameter set:
UriParameters
- AllowHttp SwitchParameter
- Allow HTTP workbook downloads in addition to HTTPS.
- Password String
- Password used to open an encrypted workbook package.
- ReadOnly SwitchParameter
- Open the file in read-only mode.
- Uri Uri
- Remote workbook URI to load.