Forum Discussion
Reinier SPRUIJT
Jun 11, 2018Brass Contributor
Trying to Install-Module AzureAD but Get-PSRepository "WARNING: Unable to find module repositories."
I am running PSVersion 5.1.16299.431 and have set my proxy using NetSH WinHTTP Set Proxy proxy-server="my.proxy.server" I would like to "Install the preview version of the Azure Active Directory ...
- Jun 18, 2020
I followed this article, and the "Microsoft way" didn't work. I needed to execute the second block of commands:
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 Register-PSRepository -Default -Verbose Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
VasilMichev
Jun 11, 2018MVP
Have you tried the -Proxy/-ProxyCredential parameters? :)
- Reinier SPRUIJTJun 12, 2018Brass Contributor
VasilMichev, yes I did also try Install-Module AzureAD -proxy "my.proxy.server" with output:
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'AzureAD'. Try Get-PSRepository to see all available registered module repositories.