PowerShell Unable to find module providers (PowerShellGet) - Windows 10

MARCEL BALCAREK 61 Reputation points
2021-02-03T22:48:20.177+00:00

Hello, I have a windows 10 machine, and recently tried to install some packages and failed. I have seen several posts on this issue, but have not found a solution. Can someone give me a path forward? I do not use FIPS.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
Install-PackageProvider -Name NuGet -Force

Install-PackageProvider : Unable to find repository with SourceLocation ''. Use Get-PSRepository to see all available repositories.

Get-PSRepository

PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet).

Get-PackageProvider  

Name Version DynamicOptions


NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate

Get-PackageProvider -ListAvailable

Name Version DynamicOptions


NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate

Get-InstalledModule PowerShellGet

PackageManagement\Get-Package : Unable to find module providers (PowerShellGet).

Get-Module PowerShellGet

ModuleType Version Name ExportedCommandsemphasized text*


Script 1.0.0.1 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}

Get-PSRepository

PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet).

Install-Module -Name PowerShellGet -Force

PackageManagement\Install-Package : Unable to find module providers (PowerShellGet).

Update-Module -Name PowerShellGet

Update-Module : Module 'PowerShellGet' was not installed by using Install-Module, so it cannot be updated.

Register-PSRepository -Default -Verbose

VERBOSE: PowerShell meta provider initialization failed.
VERBOSE: No match was found for the specified search criteria and provider name 'PowerShellGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system.
PackageManagement\Register-PackageSource : Unable to find module providers (PowerShellGet).

$PSVersionTable

Name Value


PSVersion 5.1.18362.752
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.752
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,548 questions
{count} votes

Accepted answer
  1. Riley, Russel 181 Reputation points
    2021-04-13T16:55:24.473+00:00

    I may have resolved this exact same issue today. I noticed that this problem occurred only for my main user on my machine - other user accounts didn't have a problem. I noticed that in my Documents\WindowsPowerShell folder I had a "Modules" folder, which included a module for "PackageManagement." Deleting the entire Modules folder resolved the issue for me.

    What's worse, I have OneDrive known folder redirection turned on, which meant this folder was being replicated to every machine where I logged in, which broke PowerShell for me on every machine I touched.

    21 people found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Pepa Štefan 10 Reputation points
    2023-06-08T11:06:38.8733333+00:00

    In my case most of the files in Modules directory were blocked. I called Unblock-File on them and everything started working.

    2 people found this answer helpful.
    0 comments No comments

  2. Vincent Zhou 1 Reputation point
    2021-09-29T21:40:26.52+00:00

    It works like a charm! I've been bothered by this issue & had to copy the module files around manually for months. Thank you.

    0 comments No comments

  3. Marius Torres 1 Reputation point
    2022-02-10T09:10:42.547+00:00

    Great !! Also worked for me

    0 comments No comments

  4. Mazzu 0 Reputation points
    2023-12-06T09:31:03.8966667+00:00

    not for me but my PS is 7.3.8
    $PSVersionTable
    Name Value


    PSVersion 7.3.8

    PSEdition Core

    GitCommitId 7.3.8

    OS Microsoft Windows 10.0.19045

    Platform Win32NT

    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}

    PSRemotingProtocolVersion 2.3

    SerializationVersion 1.1.0.1

    WSManStackVersion 3.0

    0 comments No comments

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.