This was happening due to some OS hardening done on the operating system, Powershell console was not able to connect to internet through system IE proxy. Now internet proxy is configured on the machine, by running below command, It was again showing me long error messages with crux of unable to connect internet connection. Proxy server was configured and available for internet, I configured it quickly on Internet Explorer > Settings > Internet Options > Connections > LAN settings > Proxy server address and Port. WARNING: Unable to find module repositories.Īs the environment was isolated and no direct internet was available on the machine.
WARNING: Unable to download the list of available providers. Get-PSRepository WARNING: MSG:UnableToDownload «» «» I have faced this issue many times in the past, This is basically due to absense of internet and PSRepository information doesn't exists. Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a sendĬreating an internal PowerShell module repositoryĪfter running the cmdlet Get-PSRepository it was continually showing error WARNING: Unable to find module repositories. + FullyQualifiedErrorId : NoMatchFoundForCriteria.InstallPackage + CategoryInfo : ObjectNotFound: (:InstallPackage), Exception Try Get-PSRepository to see all available registered module repositories.Īt C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21 + FullyQualifiedErrorId : NoMatchFoundForCriteria.FindPackage Install-Module Posh-SSH -Scope CurrentUser PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Posh-SSH'. + CategoryInfo : ObjectNotFound: (:FindPackage), Exception + PackageManagement\Find-Package | Microsoft. Try Get-PSRepository to see all available registered module repositories.Īt C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1360 char:3 Find-Module Posh-SSH PackageManagement\Find-Package : No match was found for the specified search criteria and module name 'Posh-SSH'.
After trying find and install PowerShell module with required parameters, in both the error outputs it was asking to run cmdlet Get-PSRepository. I was at one of my client's location and setting up PowerShell enviroment. I was trying to download few PowerShell modules from online PSGallery with below commands, while received the errors.