Forum Discussion

Bernd_Kroon's avatar
Bernd_Kroon
Brass Contributor
Dec 12, 2020

Connect-SPOService: Could not load type 'System.Security.Cryptography.SHA256Cng' .....

Mu environment: Windows 10 installed PowerShell 7.1 Running Microsoft Sharepoint Online command "connect-SPOService" using elevated session does not work when running PowerShell 7.1, but does work...
  • VasilMichev's avatar
    Dec 12, 2020

    The module is not supported on PSCore/7.1, it has dependencies on .Net libraries which are not supported there. It should run fun in compatibility mode though (use the UseWindowsPowerShell switch with Import-Module).

     

     

Resources