Unable to find module providers PowerShellGet on Windows10 machine

Lohit, Ambati 0 Reputation points
2023-09-22T15:24:25.9233333+00:00

Hi Team,

I removed the AzureRM modules from my PowerShell, but they were not uninstalled correctly. Consequently, I manually deleted these modules from the PowerShell Modules folder. Afterward, I attempted to install the modules, but I encountered an issue preventing me from installing the Az modules. The error message is as follows

PS C:\Users\amlohit> install-module Az
PackageManagement\Install-Package : Unable to find module providers (PowerShellGet).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPack 
   age) [Install-Package], Exception
    + FullyQualifiedErrorId : UnknownProviders,Microsoft.PowerShell.PackageManagement.Cmdlets 
   .InstallPackage

Regards,

Lohit Ambati

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,466 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.