Unable to install module from repository

Martin Kováč 1 Reputation point
2021-04-23T07:34:21.517+00:00

Hello,

I have an issue with installing new module on windows 2016.

What I already found and applied:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12  
  
[system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('http://proxyXXXXXXX.com:8080')  
[system.net.webrequest]::defaultwebproxy.credentials =  [System.Net.CredentialCache]::DefaultNetworkCredentials  
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true  

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord  
set strong cryptography on 32 bit .Net Framework (version 4 and above)  
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord  

Nothing helps I still don't see the repository set:

90664-repository.png

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Mouad Cherkaoui 6 Reputation points
    2021-08-07T20:18:28.047+00:00

    Hi,

    try using:
    Register-PSRepository -Default

    it will simply register the PSGalery.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.