title: Powershell error saying the gallery is unavailable try again later
body: <p>I am running into this issue where iam unable to install any modules. even when i try to register i get this error. any ideas on resolving this appreciate it.</p>
  <pre><code>PS C:\Users\abc&gt; Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2
  Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable.  Please try again later.
  At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4095 char:9
  +         Get-PSGalleryApiAvailability -Repository $Name
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException
      + FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
   
  Register-PSRepository : Use 'Register-PSRepository -Default' to register the PSGallery repository.
  At line:1 char:1
  + Register-PSRepository -Name PSGallery -SourceLocation https://www.pow ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (PSGallery:String) [Register-PSRepository], ArgumentException
      + FullyQualifiedErrorId : UseDefaultParameterSetOnRegisterPSRepository,Register-PSRepository
   
  
  PS C:\Users\abc&gt; $PSVersionTable
  
  Name                           Value                                                                                                                                                                 
  ----                           -----                                                                                                                                                                 
  PSVersion                      5.1.17134.858                                                                                                                                                         
  PSEdition                      Desktop                                                                                                                                                               
  PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                               
  BuildVersion                   10.0.17134.858                                                                                                                                                        
  CLRVersion                     4.0.30319.42000                                                                                                                                                       
  WSManStackVersion              3.0                                                                                                                                                                   
  PSRemotingProtocolVersion      2.3                                                                                                                                                                   
  SerializationVersion           1.1.0.1                                                                                                                                                               
  </code></pre>
  <p>-- adding some more commands</p>
  <pre><code>Find-PackageProvider -Name nuget
  WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&amp;clcid=0x409' to ''.
  WARNING: Unable to download the list of available providers. Check your internet connection.
  Find-PackageProvider : No match was found for the specified search criteria and package name 'nuget'. Try
  Get-PackageSource to see all available registered package sources.
  At line:1 char:1
  + Find-PackageProvider -Name nuget
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Microsoft.Power...PackageProvider:FindPackageProvider) [Find-PackagePro
     vider], Exception
      + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackageProvid
     er
  </code></pre>
  <p>Register seems to complete without any errors, but nothing gets added</p>
  <pre><code>PS C:\Users\abc&gt; Register-PSRepository -Default
  PS C:\Users\abc&gt; Get-PSRepository
  WARNING: Unable to find module repositories.
  PS C:\Users\abc&gt;
  </code></pre>
  <hr />
  <pre><code>PS C:\Users\abc&gt; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  PS C:\Users\abc&gt; Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2
  Get-PSGalleryApiAvailability : PowerShell Gallery is currently unavailable.  Please try again later.
  At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4095 char:9
  +         Get-PSGalleryApiAvailability -Repository $Name
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [Get-PSGalleryApiAvailability], InvalidOperationException
      + FullyQualifiedErrorId : PowerShellGalleryUnavailable,Get-PSGalleryApiAvailability
  
  Register-PSRepository : Use 'Register-PSRepository -Default' to register the PSGallery repository.
  At line:1 char:1
  + Register-PSRepository -Name PSGallery -SourceLocation https://www.pow ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (PSGallery:String) [Register-PSRepository], ArgumentException
      + FullyQualifiedErrorId : UseDefaultParameterSetOnRegisterPSRepository,Register-PSRepository
  
  PS C:\Users\abc&gt; Get-PSRepository
  WARNING: Unable to find module repositories.
  </code></pre>