How to solve errors about missing PnP Cmdlets on PowerShell

SharePoint PnP logo

This blog posts briefly describes how to solve some of the most typical errors about missing PnP Cmdlets when using Windows Powershell (or SharePoint Online Management Shell).

Symptoms

When trying to run some PnP-related cmdlet, you get an error similar to ones below:

Usually, this is luckily a simple fix! 

Reason

Usually, it’s simple enough. You don’t have the cmdlets installed, or sometimes you might have multiple, conflicting ones. If you’ve got a few, get rid of them with this before continuing with the solution:

Solution: (re)install the PnP-cmdlets

This is usually at least a simple fix. Run the following cmdlet:

This works in Windows 10, or if you have PowerShellGet installed.

For more information, check this page out:

https://github.com/SharePoint/PnP-PowerShell

The following two tabs change content below.
A Software Developer working on SharePoint, Azure, Office 365 and a lot of other stuff. Writing this blog to document interesting things I've found out here and there.

Leave a Reply

Your email address will not be published. Required fields are marked *