PowerShell "Install-Module" fails to install modules "Unable to find module providers (PowerShellGet)"

When using the new PowerShell 5.0 Install-Module command you may find that you have problems such as

PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories.

Install-PackageProvider : Unable to find repository with SourceLocation ''. Please use Get-PSRepository to see all available repositories. 

This can occur when FIPS encryption is enabled on the machine, this setting can be checked by checking the local group policy settings.

System cryptography: Use FIPS 140 compliant cryptographic algorithms, including encryption, hashing and signing algorithms





Comments

  1. Thank you - been fighting this one for ages

    ReplyDelete
    Replies
    1. No problems :)

      Please feel free to check out our server documentation tool that documents things like the security options above.
      https://www.centrel-solutions.com/xiaconfiguration/network-documentation-tool.aspx

      Delete

Post a Comment

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Windows Server 2019 desktop icons such as My Computer, Windows cannot access the specified device, path, or file.