Table of Contents

Installing PnP PowerShell

You need PowerShell 7.4.0 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be installed through here.

Starting with version 3.1.379-nightly, all releases, including the nightly releases, will be fully digitally signed and will therefore work on machines restricted with the AllSigned PowerShell execution policy set. Major thanks to the .NET Foundation for providing us with the signing certificate to be able to do so.

Stable build

You can run the following commands to install the latest stable PowerShell cmdlets:

Install-Module PnP.PowerShell

Nightly build

If you want to install the latest nightly build prerelease of PnP PowerShell, run:

Install-Module PnP.PowerShell -AllowPrerelease

Use in Docker

To use PnP.PowerShell in a Docker container:

docker run -it m365pnp/powershell

More information on it, here

Updating PnP PowerShell

If you already have PnP PowerShell installed and just want to update to the latest version you can follow these steps. If you're not sure if your version is already up to date, it does no harm to run it anyway. If there's no new version available, it will not do anything. You need PowerShell 7.4.0 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be installed through here.

Stable build

You can run the following commands to update to the latest stable PowerShell cmdlets:

Update-Module PnP.PowerShell

Nightly build

If you want to update to the latest nightly built prerelease of PnP PowerShell, run:

Update-Module PnP.PowerShell -AllowPrerelease -Force

Uninstalling PnP PowerShell

In case you would like to remove PnP PowerShell, you can run:

Uninstall-Module PnP.PowerShell -AllVersions