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
Example 1: 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 [-AutoSave] -InputPath <String> [-Password <String>] [-ReadOnly] [<CommonParameters>]#Parameter set:
PathParameters
- AutoSave SwitchParameter
- Enable automatic saves on the underlying document.
- InputPath String
- Path to the workbook to load.
- Password String
- Password used to open an encrypted workbook package.
- ReadOnly SwitchParameter
- Open the file in read-only mode.
Get-OfficeExcel [-AllowHttp] [-AutoSave] [-Password <String>] [-ReadOnly] -Uri <Uri> [<CommonParameters>]#Parameter set:
UriParameters
- AllowHttp SwitchParameter
- Allow HTTP workbook downloads in addition to HTTPS.
- AutoSave SwitchParameter
- Enable automatic saves on the underlying document.
- 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.