Register-PSRepository -Default

Once the command has run, the issue should be resolved. Run the command put in a repository and this time or to install a module, it ought to work. The control completes within a few seconds.


You need to enable the proxy to get PowerShell if disabling the proxy isn’t feasible. It is highly likely PowerShell is bypassing it Should you re using a proxy via a desktop app. Once you allow the proxy to get PowerShell, run the Register control again and then try installing the module.

You should also make sure that you’re running the latest version of PowerShell. Should you re not running the latest version of Windows 10, your variant of PowerShell may not be the most up-to-date and that’s the control may be failing. It’s also wise to uninstall old versions of PowerShell.

Repair ‘Unable to find module repositories’

The ‘Unable to locate module repositories’ error arises when PowerShell cannot find the repository which you’re adding, or the module which you’re trying to include since it also comes out of a repository. The command re-registers the gallery which is why, in most cases, the issue will be fixed by it.

Is when PowerShell is not able to communicate with the repository which you want to include. This might be a problem with your web site. Should you re working with a VPN or a Proxy service, disable it and then try installing the module. Before you try to install a module it s worth running the Register control after disabling the proxy.

Other solutions

Last try altering the execution policy and import or install the module. You should make sure the module is available. Consider installing a different module to find out if it supports and if it does, maybe the problem is which you’re trying to set up. Some modules might have for installing them try these alternate methods.

Open PowerShell with admin rights and run the next command;
PowerShell does a few basic things but there are quite a few modules available you are able to install and use them to get out of it. Installing a module in PowerShell is simple sometimes once you attempt to install a module you get the error ‘Struggling to find module repositories. The fix is easy Should you ’ re getting this error.