Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, February 5, 2019 12:59 PM
I am using Win10 64bit. When I run the next command in Powershell it fails
PS C:\WINDOWS\system32> Get-PSRepository
WARNING: Unable to find module repositories.
PS C:\WINDOWS\system32>
Something similar happens when I try to get any package from PSGallery
PS C:\WINDOWS\system32> Install-Module -Name SqlServer
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'SqlServer'.
Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Any idea what might going on?
Christos Giannoukos
All replies (2)
Wednesday, February 6, 2019 2:54 AM
Hi,
Thanks for your question.
Please try to install the latest PowershellGet module as described here https://www.powershellgallery.com/packages/PowerShellGet/2.0.4 and try your actions again.
Best Regards,
Lee
Just do it.
Thursday, February 21, 2019 6:38 AM
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
Lee
Just do it.