question

MARCELBALCAREK-7675 avatar image
0 Votes"
MARCELBALCAREK-7675 asked VincentZhou-8735 answered

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

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 ExportedCommands*emphasized 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
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm having the exact same issue. My only difference is PSVersion: 5.1.19041.610.

1 Vote 1 ·

Did Get-PackageProvider only return nuget?There should be msi and powershellget by default. Have you tried DISM /Online /Cleanup-image /RestoreHealth?

0 Votes 0 ·

Hi IanXue-MSFT , yesGet-PackageProvider only returned nuget - NuGet 2.8.5.208.

0 Votes 0 ·
DeomeChris-2705 avatar image DeomeChris-2705 MARCELBALCAREK-7675 ·

Have you had any luck?

0 Votes 0 ·
Show more comments

I am having the exact same issue, thinking the feature update to 2004 would have helped. no dice. Nothing is working.

0 Votes 0 ·
RileyRussel-3892 avatar image
8 Votes"
RileyRussel-3892 answered RHoopJr commented

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.

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Been fighting with this for ages, this was the exact issue, including the OneDrive redirection. Thanks!

1 Vote 1 ·

Same issue. New laptop, had to delete the Modules folder before anything would work.

0 Votes 0 ·

Thanks, did work for me!

0 Votes 0 ·

RileyRussel-3892 I can confirm your fix resolved the original issue. Thank you! Marcel

0 Votes 0 ·

I have spent so much time on this. I had support help me and they couldn't figure it out. This was a lifesaver. Every machine I had. Thank you so much.

0 Votes 0 ·
VincentZhou-8735 avatar image
0 Votes"
VincentZhou-8735 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.