No repository found PS gallery

sns 9,226 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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 44,776 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.?.?

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,351 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–