Cmdlet
Unprotect-OfficeExcelWorkbook
Removes workbook structure/window protection metadata.
Syntax
Examples
Remove workbook-level protection metadata.
Unprotect-OfficeExcelWorkbook -Path .\Report.xlsx
Test-OfficeExcelWorkbook -Path .\Report.xlsx -SkipOpenXmlValidation |
Select-Object Passed, ProtectionSummaryRemoves workbook structure/window protection metadata and saves the workbook.
Parameters
- -PassThru SwitchParameter
- Emit the workbook after removing protection.
- -Path String
- Workbook path to update.
- -Document ExcelDocument
- Workbook to update outside the DSL context.
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.