Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Issue downloading from the Powershell Gallery

Open jfrobichaud opened this issue 6 years ago • 1 comments

Hi, I'm having issue to download the newer version.

`PS C:\WINDOWS\system32> Set-ExecutionPolicy Unrestricted -Force

PS C:\WINDOWS\system32> Install-Module Office365DSC -Force WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/ReverseDSC/2.0.0.2' is not valid. PackageManagement\Install-Package : Package 'ReverseDSC' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1:9685 char:34

  • ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (C:\Users\XA_Rob...C.2.0.0.2.nupkg:String) [Install-Package], Exception
    • FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage ` Thanks

jfrobichaud avatar Apr 07 '20 12:04 jfrobichaud

Worked after setting up Powershell to TLS 1.2: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

jfrobichaud avatar Apr 07 '20 12:04 jfrobichaud