Discover how to run any version of PnP.PowerShell without installation! This guide walks you through downloading, extracting, and importing specific PnP versions manually, enabling you to test scripts with different PowerShell requirements seamlessly and efficiently. Unique :

Run Any Version of PnP PowerShell Without Installation
If you’re a PowerShell enthusiast or a SharePoint pro, you know how tricky managing different versions of PnP.PowerShell can be. Sometimes, your scripts need a newer or older version than what’s installed on your machine. Luckily, Microsoft has a neat way to run any PnP version without installing it. Let’s dive into how you can do this efficiently.
What’s New?
The latest method allows you to manually download and run any PnP.PowerShell version directly from the PowerShell Gallery. No installation needed! This is especially useful when testing scripts that rely on deprecated or newly introduced features.
“Success!!! You have loaded your desired version of PNP, Great Job!!!” – mikeleemsft, Microsoft
Major Updates and Requirements
Before jumping in, note the PowerShell version requirements for different PnP.PowerShell releases:
- PnP.PowerShell 0 requires PowerShell 5.1 or higher.
- Version 0 needs PowerShell 7.2 or higher.
- Version 3.0+ demands PowerShell 7.4 or above.
If you’re still on Windows PowerShell 5.x, you’ll need to upgrade to PowerShell 7.x. Microsoft’s official docs provide a quick guide to install it.
Step-by-Step: Running PnP Without Installation
- Head to the PnP.PowerShell Gallery and pick your desired version.
- Expand the file list and choose “Manual Download” to grab the raw
.nupkg
file. - Move the downloaded file to a clean folder, e.g.,
C:\temp\pnp.powershell.version
. - Rename the file extension from
.nupkg
to.zip
and extract it. - Open PowerShell 7.x as Administrator and navigate to the extracted folder.
- Run
Import-Module .\PnP.PowerShell.psd1
. If you hit a signature error, set your execution policy to unrestricted withSet-ExecutionPolicy Unrestricted
. - Verify the module loaded using
Get-Module -Name "PnP.PowerShell"
.
“Now you are free to use PNP commands that are included with the targeted version of PNP, without installing the module.” – mikeleemsft, Microsoft
Testing Your Setup
To confirm everything works, register a new PnP app for interactive login:
Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PNPAPP" -Tenant yourtenant.onmicrosoft.com
Then connect using:
Connect-PnPOnline -Url "https://yourtenant-admin.sharepoint.com" -ClientId 'your-client-id' -Interactive
After logging in, you can run PnP commands from your chosen version without any installation hassles.
Why This Matters
This approach saves time and avoids version conflicts. Developers and admins can quickly test scripts across multiple PnP versions without cluttering their systems.
In short, this manual download and import method is a game-changer for PowerShell users working with SharePoint and Microsoft 365 automation.
From the New blog articles in Microsoft Community Hub