Microsoft365DSC
Microsoft365DSC copied to clipboard
Issue downloading from the Powershell Gallery
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
Worked after setting up Powershell to TLS 1.2: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12