Powershell error: Could not load file or assembly


I'm trying to install a solution from github and I get the error: 

Import-Module : Could not load file or assembly 'file:///C:\Users\...\SharePointPnPPowerShellOnline\SharePointPnP.PowerShell.Online.Commands.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)


Anyone nows what I'm doing wrong? I have deleted som of the url there, because it has my name and the name of the solution in it. 

4 Replies
Just to double check, have you installed PnP PowerShell? From the error message, it seems to be that is using the previous version of the module as well - a new version was released last week.

Hi @Joel Rodrigues,


Thanks for answering! Yes, I have the newest version of PnPPowerShell installed. 

Hi @Tonje Waasjø 


In that case, I believe you will need the previous version for Windows PowerShell and not the new version for PowerShell Core.


Install-Module SharePointPnPPowerShellOnline


Documentation still seems to be available:

best response confirmed by Tonje Waasjø (Contributor)

The problem is sloved. It was caused by the zip-file being blocked by your operating system. Sloved it by using 7Zip