Windows 10 Problem with repository in PowerShell

  • Thread starter Thread starter chgian
  • Start date Start date
C

chgian

Guest
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

More...
 
Back
Top