Skip to main content

PowerShell Gallery is currently unavailable

Recently working on an automation in windows server I got this issue and my automation got stopped.


Generally by this error you will know the server is unable to reach out to the PSGallery.

ERROR

[DBG]: PS C:\Users\nagarro>> Get-PSGalleryApiAvailability -Repository PSGallery
VERBOSE: Error in executing
PowerShell Gallery is currently unavailable.  Please try again later.

Resolution

So 2 things which can be done here is:

1. [Net.ServicePointManager]::SecurityProtocol
Run this command to check whether the tls1.2 is enabled or not. I f it is not listed just run this command-
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    

2. Sometimes the internet explorer first configuration due to security reason my cause this issue.
So you need to open the PS gallery in the IE and add these sites as a exception.
You can also disable the config in the registry setting of IE.



I was able to solve the issue by these steps. Do let me know what was you experience with this error?


Thanks for reading!

Comments

Popular posts from this blog

Now Send a Smell Via Text Message using "oPhone"..!!

Now Send a Smell Via Text Message using " oPhone "..!! Nowadays Smartphones provide a Variety of Stimulation for Some Of Our Senses whether it be Listening to Favorite Songs or Watching Movies. But Now Our Noses will also be Involved in this Action. All because of this Bluetooth enabled Odor Emitting Device. this device Enables Users to Send And Receive Smell by Sending A Simple Text Message or Email. This Device is Called " oPhone " as it sends "oNotes" or Odors.

Vlc media player

As per my personnal experience from past 5-6 years this is the most trusty media player which I can trust upon to play any video.. it can play 3gp to full hd and even built and repair the broken crashed videos.. adding more there regular updates which are easily to download.. the setup is hardly(20-25 m.b) It’s short-cut key controls: