Fix Install-Module not found in PowerShellGet
nefarius last edited by
Install-Modulecan sometimes (especially after a major OS upgrade) break with this vague message:
This cmdlet is provided by the module PowerShellGet which is redistributed with the official PowerShell installation. If you're experiencing this issue, try the following.
Navigate to the file system path
C:\Program Files\WindowsPowerShell\Modules\PowerShellGetwhere you may see the following directories:
If you see one or more folders named differently than
188.8.131.52, delete them. Re-open PowerShell and the installation again. It should now display the expected consent message:
After confirmation the download and installation will work again.