Skip to content

The 'Connect-PnPOnline' command was found in the module 'PnP.PowerShell', but the module could not be loaded #2967

Answered by dogandponyshow
lidacbl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there lidacbl. I had this issue earlier after updating PS through ISE to v2.1.1 Also same error for Import-Module.

Take a look here: #2969

Release 2.1.1 has dropped support for PS 5.1 and ISE

Options are:
install PS 7.2 or later.

You could also consider rolling back to version 1.12.0:

Uninstall-Module -Name "PnP.PowerShell" -Force
Install-Module PnP.PowerShell -RequiredVersion 1.12.0 -Force

Hope that helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lidacbl
Comment options

Answer selected by lidacbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants