Microsoft PowerShell

Unable to resolve package source ‘’

I was running a command to install a PowerShell module, e.g.

Install-Module -Name navcontainerhelper -Force

while I received the following error message:

Unable to resolve package source ‘’


Run PowerShell as Administrator and run the following command to force to use TLS1.2 protocol

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Did my solution solve your problem? Leave a reply.

50 replies on “Unable to resolve package source ‘’”

This was exactly what I needed, thanks so much!!! The answer was so straightforward I wasn’t really sure this has much “substance” (no offense intended) but the solution really was that precise and effective, so thank you very much for posting this!! Cheers

Hi Chris,

I’m happy that I was able to help you through my website. Yes, my goal is to provide a working solution to the error messages I received in my daily experience working in IT.
Your message is really appreciated because give me the motivation to continue writiing new posts.

Thank you

Not solve for me.

I receive the erro when execute the command ” invoke-command -ComputerName $computer -ScriptBlock {install-module pswindowsupdate -force}” and setting the $computer to the local hostname, but if i run “install-module pswindowsupdate -force” directly I dont receive the error.


Actually I had an issue with an integration in NAV that suddenly stopped working and the solution was to enable use TLS 1.2
I applied the same solution here and it worked.

Thank you, vey much!

This was my case:

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClo
WARNING: Unable to resolve package source ‘’.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
‘PackageManagement’. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:1772 char:21
+ … $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power….InstallPackage:InstallPackage) [Install-Package], Ex
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Windows\system32> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
PS C:\Windows\system32> Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClo
PS C:\Windows\system32>

Fantastic. Have been dealing with this problem for months and your one-liner solved it. Thanks so much!

Thank you very much, this is very helpful.. But I noticed the authentication prompt doesn’t come with all clients, Mobile client fine, Apple devices fine, but windows 10 sometime it gives the authentication prompt sometime it doesn’t.. Is there an additional settings that need to be done on the Access Point Itself..?

Much appreciated your help and support.


This works but only for the session. A permanent solution is to run the following in a admin PS session then restart PS.
# set strong cryptography on 64 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path ‘HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319’ -Name ‘SchUseStrongCrypto’ -Value ‘1’ -Type DWord

# set strong cryptography on 32 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path ‘HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319’ -Name ‘SchUseStrongCrypto’ -Value ‘1’ -Type DWord

Golden! Thank you so much for this, and also – thanks previous commenters for pushing this to the top of Google results for my query.. 🙂
I wonder if the culprit is me (@work) still being on Win7?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.