> For the complete documentation index, see [llms.txt](https://docs.poshtools.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.poshtools.com/open-source-tools/powershell-protect/installation.md).

# Installation

PowerShell Protect is distributed as a PowerShell module. You can install it from the PowerShell Gallery.

## Install

Install the module and then register the PowerShell Protect AMSI provider using `Install-PowerShellProtect`. Registering the provider must be run as a local administrator.

```powershell
Install-Module 'PowerShellProtect'
Install-PowerShellProtect
```

To install the module for the current user before registering the provider, use `-Scope CurrentUser`.

```powershell
Install-Module 'PowerShellProtect' -Scope CurrentUser
Install-PowerShellProtect
```

## Uninstall

Unregister the provider by using `Uninstall-PowerShellProtect`. This action must be run as a local administrator.

```powershell
Uninstall-PowerShellProtect
```

Restart the machine after uninstalling to ensure the AMSI provider is fully unloaded before removing the module.
