Install-Module dbatools not working #7450
-
I am getting an error as shown below when I use Install-Module dbatools with Powershell on Windows 10 having SQL server 2017 installed. How to resolve this issue, please advise . Thanks WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x
PackageManagement\Import-PackageProvider : No match was found for the specified search
WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x
Install-Module : NuGet provider is required to interact with NuGet-based repositories.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
hey @faizqur - this generally happens because of a .NET issue SSL settings may need to be changed: You may also potentially have an old version of PowerShellGet/PackageManagement (Save-Module PowerShellGet, PackageManagement to temp place then delete and replace). |
Beta Was this translation helpful? Give feedback.
-
Any suggestions on how to resolve this issue ? |
Beta Was this translation helpful? Give feedback.
-
Hi @faizqur Open Powershell (as Admin) Run the command Run the command Run the command |
Beta Was this translation helpful? Give feedback.
Hi @faizqur
I had the same issue and I solved running these steps below
Open Powershell (as Admin)
Run the command
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Run the command
Install-PackageProvider -Name NuGet
Run the command
Install-Module -Name DBATools -force