{"id":5716,"date":"2022-05-04T23:23:38","date_gmt":"2022-05-04T23:23:38","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5716"},"modified":"2022-12-02T03:11:17","modified_gmt":"2022-12-02T03:11:17","slug":"install-package-no-match-was-found-for-the-specified-search-criteria-and-module-name","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/install-package-no-match-was-found-for-the-specified-search-criteria-and-module-name","title":{"rendered":"Install-Package : No match was found for the specified search criteria and module name"},"content":{"rendered":"\n<p>Recently trying to install a Module in Powershell gallery on a PC , but came back with an error<\/p>\n\n\n<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">PS C:\\Windows\\system32&gt; Install-Module -Name AsBuiltReport<br\/>PackageManagement\\Install-Package : No match was found for the specified search criteria and module name<br\/>\u2019AsBuiltReport\u2019. Try Get-PSRepository to see all available registered module repositories.<br\/>At C:\\Program Files\\WindowsPowerShell\\Modules\\PowerShellGet\\1.0.0.1\\PSModule.psm1:1772 char:21<br\/>+ \u2026 $null = PackageManagement\\Install-Package @PSBoundParameters<br\/>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br\/>+ CategoryInfo : ObjectNotFound: (Microsoft.Power\u2026.InstallPackage:InstallPackage) [Install-Package], Ex<br\/>ception<br\/>+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n\n\n\n<p>Had a check and No Repos were listed<\/p>\n\n\n<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">S C:\\Windows\\system32&gt; Get-PSRepository | fl *<br\/>WARNING: Unable to find module repositories.<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n\n\n\n<p>Installed the Default Repos again<\/p>\n\n\n<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">PS C:\\Windows\\system32&gt; Register-PSRepository -Default<br\/>PS C:\\Windows\\system32&gt; Get-PSRepository | fl *<br\/><br\/><br\/>Name : PSGallery<br\/>SourceLocation : https:\/\/www.powershellgallery.com\/api\/v2<br\/>Trusted : False<br\/>Registered : True<br\/>InstallationPolicy : Untrusted<br\/>PackageManagementProvider : NuGet<br\/>PublishLocation : https:\/\/www.powershellgallery.com\/api\/v2\/package\/<br\/>ScriptSourceLocation : https:\/\/www.powershellgallery.com\/api\/v2\/items\/psscript<br\/>ScriptPublishLocation : https:\/\/www.powershellgallery.com\/api\/v2\/package\/<br\/>ProviderOptions : {}Y<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Recently trying to install a Module in Powershell gallery on a PC , but came back with an error Had a check and No Repos were listed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1244,970,3810,576,3809],"class_list":["post-5716","post","type-post","status-publish","format-standard","hentry","category-research","tag-default","tag-install","tag-no-match-was-found","tag-powershell","tag-repos"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5716"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5716\/revisions"}],"predecessor-version":[{"id":6462,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5716\/revisions\/6462"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}