我尝试通过以管理员身份(win10、64Bit)执行以下命令来安装 Powershell SQLSERVER 模块,但它失败了
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
我搜索了网络,尝试了一些解决方案,甚至与公司管理员交谈,但没有运气。正如他们告诉我的,公司没有代理,只有防火墙。其他同事可以毫无问题地运行该命令。下一个命令也失败了
PS C:\WINDOWS\system32> Get-PSrepository
WARNING: Unable to find module repositories.
任何想法?