Fix: Install-Module: PackageManagement\Install-Package : No match was found for the specified search criteria and module name Error

Problem: When trying to install a new module using: Install-Module <Module-Name>, getting this error message:

“PackageManagement\Install-Package : No match was found for the specified search criteria and module name ‘ExchangeOnlineManagement.’. Try Get-PSRepository to see all available registered module repositories.”

Install-module Packagemanagement Install-package - No match was found for the specified search criteria and module name

Solution:

Here is the troubleshooting checklist:

  • It could be due to a typo in the module name (E.g., the “dot” at the end of the module name, in my case!). The right module name resolved the issue. Try Find-module *Module-Name* to check all available modules. E.g., Find-module *Exchange*
  • Try setting the TLS1.2 for the .net Security protocol using: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  • Type: Get-PSRepository, If you get any error, Try running: Register-PSRepository -Default
  • Try Re-installing the PowerShellGet module using: Install-Module -Name PowerShellGet -Force
  • Try using the “-scope” attribute. E.g. Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

2 thoughts on “Fix: Install-Module: PackageManagement\Install-Package : No match was found for the specified search criteria and module name Error

  • After the Register-PSRepository -Default command everything works. Thanks

    Reply
  • Perfect solution! After the Register-PSRepository -Default command everything started to work here.
    Thank you!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *