# Unprotect-OfficeExcelSheet

Removes worksheet protection. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **723**

Forks **84**

Open issues **2**

Total downloads **5,217,154**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: ExcelUnprotect

**Module**

`PSWriteOffice`

**Aliases**

`ExcelUnprotect`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Source**

[UnprotectOfficeExcelSheetCommand.cs:16](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/UnprotectOfficeExcelSheetCommand.cs#L16) 

Removes worksheet protection.

## Syntax

```
Unprotect-OfficeExcelSheet
[-PassThru]
[<CommonParameters>]
```

[#](#method-unprotect-officeexcelsheet-switchparameter)

Parameter set: `Context`

```
Unprotect-OfficeExcelSheet
-Document <ExcelDocument>
[-PassThru]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-unprotect-officeexcelsheet-exceldocument-switchparameter-string-int32)

Parameter set: `Document`

## Examples

### Unprotect the active sheet.

```powershell
ExcelSheet 'Data' { Unprotect-OfficeExcelSheet }
```

Removes worksheet protection.

## Parameters

**-PassThru SwitchParameter optional**

Emit the worksheet after removing protection.

**-Document ExcelDocument requiredpipeline: True (ByValue)sets: Document**

Workbook to operate on outside the DSL context.

**-Sheet String optionalsets: Document**

Worksheet name when using Document.

**-SheetIndex Int32 optionalsets: Document**

Worksheet index (0-based) when using Document.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:015E160DF114161E3790D9AFBA55F7EF707AFC38F1C2ECBB8FB0200633F7AD90 -->
