No repository found PS gallery

sns 9,246 Reputation points
2022-05-03T11:36:39.587+00:00

NO Repository found error.
198553-capture.png198415-psgallerydidnowork.png

I tried to troubleshoot with the help of PSgallery below support link, but no luck
https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/

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

Accepted answer
  1. Rich Matheisen 47,906 Reputation points
    2022-05-05T14:28:29.99+00:00

    Run this:

    get-module powershellget -list
    

    Are you running the latest non-beta version? Here's the web page: 2.2.4.1

    Then run this:

    get-module nuget -list
    

    What version are you running?

    Run this:

    get-packageprovider
    

    Do you see PowerShellGet and NuGet in the list? What are their version numbers? I think NuGet has to be at least 2.8.?.?

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,931 Reputation points
    2022-05-04T08:37:18.63+00:00

    Hi there,

    If you are trying to Configure TLS 1.2 for your PowerShell session do the following steps.

    -Run PowerShell as administrator.
    -To set TLS 1.2 for the current PowerShell session, type:

    $TLS12Protocol = [System.Net.SecurityProtocolType] 'Ssl3 , Tls12'
    [System.Net.ServicePointManager]::SecurityProtocol = $TLS12Protocol

    Also, PowerShell Team has released a new PowerShellGet, which solves the issue with TLS 1.2 requirement.


    --If the reply is helpful, please Upvote and Accept it as an answer–


Your answer

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