question

sns1 avatar image
0 Votes"
sns1 asked RichMatheisen-8856 commented

No repository found PS gallery

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
capture.png (54.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered RichMatheisen-8856 commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Rich Mathesien,

Thank you for the inputs, I could resolve by executing the commands you have provided. PFA199452-psgalleryresolve.png

So installing Beta version fixed the issue right?


0 Votes 0 ·
psgalleryresolve.png (140.8 KiB)

It's been working for me. :-)

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered sns1 commented

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–

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Limitless Technology,

I am still seeing same issue. PFA.
198690-sameerror.png


0 Votes 0 ·
sameerror.png (48.1 KiB)

Hi sns1,

Try running Register-PSRepository -Default (without any additional parameters). After that, the Gallery should be successfully registered:

PS C:\Windows\system32> Get-PSRepository


I hope this helps.



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

0 Votes 0 ·
sns1 avatar image sns1 LimitlessTechnology-2700 ·

Hi Limitless technology,

I am still getting error, please find attached screenshot.
199202-getrepoerror.png


0 Votes 0 ·
getrepoerror.png (30.8 KiB)